Repository navigation
fix: bump pelletier/go-toml/v2 to v2.4.3 - #255
Merged
Merged
Conversation
Same finding Procore reported against ld-find-code-refs 2.18.1: XRAY-1033007, github.com/pelletier/go-toml/v2 v2.2.4, fixed in v2.4.3. This repo picks the module up indirectly through spf13/viper as well, so it carried the same stale version. v2.4.3 carries upstream PR #1092, "bound array and inline table nesting depth to prevent stack-overflow DoS". The advisory is not in any public database -- OSV returns zero results for this module at every version -- so it is JFrog proprietary research data and neither govulncheck nor Dependabot flags it. go build, go vet, go test ./... and the pre-commit golangci-lint invocation all pass; govulncheck remains at 0. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
erangeles
approved these changes
Sep 25, 2026
cspath1
added a commit
that referenced
this pull request
Sep 30, 2026
Releases two changes that have been sitting on main: #253 retry rate-limited flag requests, and preserve cancellation and timeout errors while reading flag responses #255 pelletier/go-toml/v2 to v2.4.3 (XRAY-1033007) Patch rather than minor: #253 is retry and error-propagation behaviour, which the contributor filed under Fixed, and no inputs or outputs changed. Two corrections to repository bookkeeping while here: The version constant was still 2.3.1. v2.3.2 was tagged directly at the #254 merge commit without a prepare-release commit, so the constant and the metadata pins never moved. Both are now at 2.3.3. The changelog had no 2.3.2 entry for the same reason, even though v2.3.2 was a real release that Gonfalon pins. Backfilled it from #254. Also floats the docker/ entry point example on `@v2` to match the two root Action examples above it, which already used `@v2`. That line no longer needs rewriting each release, and the "pin to a release that includes the docker/ entry point" caveat is obsolete now it floats. The `dockerImage` input keeps an exact tag. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Merged
cspath1
added a commit
that referenced
this pull request
Sep 30, 2026
Releases two changes that have been sitting on main: #253 retry rate-limited flag requests, and preserve cancellation and timeout errors while reading flag responses #255 pelletier/go-toml/v2 to v2.4.3 (XRAY-1033007) Patch rather than minor: #253 is retry and error-propagation behaviour, which the contributor filed under Fixed, and no inputs or outputs changed. Two corrections to repository bookkeeping while here: The version constant was still 2.3.1. v2.3.2 was tagged directly at the #254 merge commit without a prepare-release commit, so the constant and the metadata pins never moved. Both are now at 2.3.3. The changelog had no 2.3.2 entry for the same reason, even though v2.3.2 was a real release that Gonfalon pins. Backfilled it from #254. Also floats the docker/ entry point example on `@v2` to match the two root Action examples above it, which already used `@v2`. That line no longer needs rewriting each release, and the "pin to a release that includes the docker/ entry point" caveat is obsolete now it floats. The `dockerImage` input keeps an exact tag. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Overview** > Prepares the **2.3.3** release by aligning repo metadata with changes already on `main`, without altering action inputs or outputs in this diff. > > **`CHANGELOG.md`** adds a **2.3.3** *Fixed* section (rate-limit retries, preserving cancel/timeout errors on flag reads, `go-toml/v2` bump for XRAY-1033007) and backfills **2.3.2** (Go 1.26.8 toolchain and dependency/image pins) after v2.3.2 was tagged without a prepare-release commit. > > **`internal/version/version.go`** updates the version constant from `2.3.1` to **`2.3.3`**. **`docker/action.yml`** default and example `dockerImage` tags move from `2.3.1` to **`2.3.3`**. > > **`README.md`** switches the docker entry-point example from a pinned `@v2.3.1` to **`@v2`** (matching root action examples) while keeping the mirrored-image example on tag **`2.3.3`**. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 4fce911. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Same finding reported against ld-find-code-refs 2.18.1: XRAY-1033007, github.com/pelletier/go-toml/v2 v2.2.4, fixed in v2.4.3. This repo picks the module up indirectly through spf13/viper as well, so it carried the same stale version.
v2.4.3 carries upstream PR #1092, "bound array and inline table nesting depth to prevent stack-overflow DoS".
The advisory is not in any public database -- OSV returns zero results for this module at every version -- so it is JFrog proprietary research data and neither govulncheck nor Dependabot flags it.
go build, go vet, go test ./... and the pre-commit golangci-lint invocation all pass; govulncheck remains at 0.
Note
Overview
Upgrades the indirect dependency
github.com/pelletier/go-toml/v2from v2.2.4 to v2.4.3 (viaspf13/viper), with matchinggo.sumand vendor updates. There are no first-party code changes in this repository.The motivation is JFrog XRAY-1033007: malicious TOML with extremely deep nested arrays or inline tables could drive unbounded parser recursion and stack-overflow DoS. v2.4.3 adds a nesting cap (upstream PR #1092; the parser now rejects beyond
maxValueNestinginstead of overflowing the stack).This library is only used indirectly for config parsing through Viper; behavior for normal config files should be unchanged.
Reviewed by Cursor Bugbot for commit 8b2600f. Bugbot is set up for automated code reviews on this repo. Configure here.