Repository navigation
Bump golang.org/x/text to v0.41.0 (CVE-2026-56851, CVE-2026-56852) - #129
Closed
nthmost-orkes wants to merge 2 commits into
Closed
nthmost-orkes wants to merge 2 commits into
nthmost-orkes wants to merge 2 commits into
Conversation
Fixes two high-severity DoS CVEs in the indirect golang.org/x/text dependency (out-of-bounds slice in the Nickname profile, and invalid UTF-8 handling). v0.41.0 is the fix floor for CVE-2026-56851. x/text v0.41.0 declares 'go 1.25.0', which raises the module's go directive and enables the stricter printf analyzer. That flagged a pre-existing non-constant format string in cmd/workflow.go (an error built from server-supplied validation messages that can contain '%'); switched it to errors.New to keep 'go test' / vet green.
# Conflicts: # cmd/workflow.go
Contributor
Author
|
Closing as redundant. #127 already landed the same golang.org/x/text v0.41.0 bump (same go 1.25.0 directive bump and the same cmd/workflow.go format-string fix) on main, so this branch now has an empty diff against main. CVE-2026-56851 and CVE-2026-56852 are resolved by #127. |
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.
Closes #128.
Both high-severity CVEs flagged in the 3.34.0 scan are in the same indirect dependency,
golang.org/x/text, so one bump clears both:0.41.0)0.39.0)0.41.0is the higher of the two fix floors, so that's the target.What changed
go.mod/go.sum:golang.org/x/textv0.14.0->v0.41.0.godirective:1.23->1.25.0. This is required by the fix -- x/textv0.41.0itself declaresgo 1.25.0, so the module minimum has to move with it. Notoolchainline was added.cmd/workflow.go:fmt.Errorf(message)->errors.New(message).Why the cmd/workflow.go change rides along
Raising the
godirective to 1.25 enables the stricterprintfvet analyzer, whichgo testruns as part of the build. It flagged a pre-existing non-constant format string atcmd/workflow.go:620-- an error string assembled from server-supplied validation messages, which can legitimately contain%. Left as-is,go test ./...fails to build under the new directive.errors.Newis the correct call for a pre-formatted string and keeps CI green. It's a latent correctness fix too (a%in a validation message would previously have produced a garbled error).Verified:
go build ./...andgo test ./...both pass.