Skip to content

chore(deps): bump golang.org/x/net and golang.org/x/text to fix GO-20… - #395

Merged
strategicpause merged 2 commits into
aws:mainfrom
strategicpause:bump-x-net-x-text
Jul 23, 2026
Merged

chore(deps): bump golang.org/x/net and golang.org/x/text to fix GO-20…#395
strategicpause merged 2 commits into
aws:mainfrom
strategicpause:bump-x-net-x-text

Conversation

@strategicpause

Copy link
Copy Markdown

Summary

Bump `golang.org/x/net` from v0.42.0 to v0.56.0 and `golang.org/x/text` from v0.27.0 to v0.39.0 to address:

  • GO-2026-5942 (CVE-2026-46600): Panic parsing invalid SVCB/HTTPS DNS RR in `x/net/dns/dnsmessage`
  • GO-2026-5970 (CVE-2026-56852): Infinite loop in `x/text/unicode/norm` on invalid UTF-8

Both fix versions require Go 1.25, so the `go` directive is bumped from 1.23 to 1.25.

Transitive bumps

  • `golang.org/x/sync` v0.16.0 → v0.21.0
  • `golang.org/x/sys` v0.34.0 → v0.46.0
  • `golang.org/x/tools` v0.34.0 → v0.47.0

Testing

  • `go mod verify` — all modules verified
  • `make build` — passes
  • Unit tests — all pass

Note

The CI workflow (.github/workflows/ci.yaml) currently tests Go 1.23 and 1.24. This PR will require updating the CI matrix to include Go 1.25."

@strategicpause
strategicpause requested a review from a team as a code owner July 23, 2026 20:35
Comment thread .golangci.yaml
…26-5942 and GO-2026-5970

Bump golang.org/x/net from v0.42.0 to v0.56.0 to fix GO-2026-5942
(CVE-2026-46600): panic parsing invalid SVCB/HTTPS DNS RR in
dns/dnsmessage.

Bump golang.org/x/text from v0.27.0 to v0.39.0 to fix GO-2026-5970
(CVE-2026-56852): infinite loop in unicode/norm on invalid UTF-8.

Both fix versions require Go 1.25, so bump the go directive from
1.23 to 1.25 and update the CI matrix accordingly. Also bumps
transitive deps: x/sync v0.21.0, x/sys v0.46.0, x/tools v0.47.0.
@strategicpause
strategicpause force-pushed the bump-x-net-x-text branch 3 times, most recently from b4a0732 to 18a5ed8 Compare July 23, 2026 21:10
Upgrade golangci-lint from v1.60.3 to v2.12.2 and migrate the config
to v2 format. The previous version was built with Go 1.23 and cannot
analyze Go 1.25 code.

Changes:
- Migrate .golangci.yaml to v2 schema
- Update GitHub Actions workflow to use golangci-lint-action v7
- Remove unused //nolint:gosec directives (gosec no longer flags these)
- Add //nolint:gosec where needed for G101 and G115 false positives
@strategicpause
strategicpause merged commit 0106792 into aws:main Jul 23, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants