Skip to content

fix(deps): bump x/net, klauspost/compress, and brotli - #626

Merged
Mzack9999 merged 2 commits into
mainfrom
dwisiswant0/fix/deps/bump-x-net-klauspost-compress-and-brotli
Nov 9, 2026
Merged

Mzack9999 merged 2 commits into
mainfrom
dwisiswant0/fix/deps/bump-x-net-klauspost-compress-and-brotli

Conversation

@dwisiswant0

@dwisiswant0 dwisiswant0 commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

govulncheck reports seven vulnerabilities from three dependencies in
code that this module calls. Upgrade each module to the lowest release
that fixes its advisories.

golang.org/x/net v0.58.0 to v0.60.0 fixes five HTTP/2 advisories:
GO-2026-6603, GO-2026-6610, GO-2026-6611, GO-2026-6612, and
GO-2026-6617.

github.com/klauspost/compress v1.18.7 to v1.20.2 fixes GO-2026-6865, a
panic on two-block frames.

github.com/andybalholm/brotli v1.2.0 to v1.2.7 fixes GO-2026-6888,
excessive memory allocation when decompressing crafted streams.

The upgrade also raises these indirect requirements: golang.org/x/crypto
to v0.57.0, golang.org/x/mod to v0.41.0, golang.org/x/sync to v0.23.0,
golang.org/x/sys to v0.48.0, golang.org/x/text to v0.42.0, and
golang.org/x/tools to v0.49.0. The go directive stays at 1.26.0.

golang.org/x/net v0.60.0 also deprecates http2.ConfigureTransport in
favor of http.Transport.Protocols, which fails the staticcheck lint with
SA1019. The HTTP/2 fallback client keeps the call and suppresses the
warning on that line, because the replacement is not equivalent: built
with Go 1.26, the go.mod minimum, ConfigureTransport sends requests
through the x/net HTTP/2 implementation, while Protocols selects the
copy bundled with net/http.

Fixes: #625

govulncheck reports seven vulnerabilities from three dependencies in
code that this module calls. Upgrade each module to the lowest release
that fixes its advisories.

golang.org/x/net v0.58.0 to v0.60.0 fixes five HTTP/2 advisories:
GO-2026-6603, GO-2026-6610, GO-2026-6611, GO-2026-6612, and
GO-2026-6617.

github.com/klauspost/compress v1.18.7 to v1.20.2 fixes GO-2026-6865, a
panic on two-block frames.

github.com/andybalholm/brotli v1.2.0 to v1.2.7 fixes GO-2026-6888,
excessive memory allocation when decompressing crafted streams.

The upgrade also raises these indirect requirements: golang.org/x/crypto
to v0.57.0, golang.org/x/mod to v0.41.0, golang.org/x/sync to v0.23.0,
golang.org/x/sys to v0.48.0, golang.org/x/text to v0.42.0, and
golang.org/x/tools to v0.49.0. The go directive stays at 1.26.0.

Fixes: #625
Signed-off-by: Dwi Siswanto <git@dw1.io>
golang.org/x/net v0.60.0 deprecates http2.ConfigureTransport in favor
of http.Transport.Protocols, so staticcheck fails the lint with SA1019.
The replacement is not equivalent. Built with Go 1.26, the go.mod
minimum, ConfigureTransport sends the HTTP/2 fallback client's requests
through the x/net HTTP/2 implementation, while Protocols selects the
copy bundled with net/http. Keep the call and suppress the warning on
that line.

Signed-off-by: Dwi Siswanto <git@dw1.io>
@dwisiswant0
dwisiswant0 requested a review from Mzack9999 November 9, 2026 06:24
@Mzack9999
Mzack9999 merged commit 17f32ce into main Nov 9, 2026
7 checks passed
@Mzack9999
Mzack9999 deleted the dwisiswant0/fix/deps/bump-x-net-klauspost-compress-and-brotli branch November 9, 2026 10:27
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.

govulncheck reports vulnerable x/net, klauspost/compress, and brotli in called code

2 participants