chore: upgrade x/text for CVE-2026-56852 - #19
Merged
Conversation
Upgrade golang.org/x/text from v0.37.0 to v0.39.0 to fix the infinite loop in norm.Iter when handling invalid UTF-8 input. This also updates the required x/sync version and module checksums.\n\nResolves SOU-1751.
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.
Summary
golang.org/x/textfromv0.37.0to the patchedv0.39.0x/sync,x/mod, andx/tools)norm.Itercan enter an infinite loop on invalid UTF-8 inputVerification
go mod verifygo list -m golang.org/x/textselectsv0.39.0go test ./...git diff --checkAfter merge, Sourcebot should advance its
vendor/zoektsubmodule to pick up the patched dependency.Note
Low Risk
Indirect dependency patch with no code changes; typical low-risk security maintenance, assuming tests pass.
Overview
Bumps
golang.org/x/textfrom v0.37.0 to v0.39.0 to address CVE-2026-56852, wherenorm.Itercould hang on invalid UTF-8.The module graph is refreshed in lockstep:
golang.org/x/syncv0.20.0 → v0.21.0 (direct), plusx/modandx/toolschecksum updates ingo.sum. No application source changes—onlygo.mod/go.sum.Reviewed by Cursor Bugbot for commit f5067e1. Bugbot is set up for automated code reviews on this repo. Configure here.