Skip to content

fix: fix new CVEs in quic-go and crypto - #287

Merged
iFurySt merged 2 commits into
AmoyLab:mainfrom
kx-byte:main
Dec 4, 2025
Merged

iFurySt merged 2 commits into
AmoyLab:mainfrom
kx-byte:main

Conversation

@kx-byte

@kx-byte kx-byte commented Dec 4, 2025 •

Copy link
Copy Markdown
Contributor

Summary by Sourcery

Update Go module dependencies to newer versions to address recent security vulnerabilities and stay current with upstream libraries.

Enhancements:

  • Upgrade golang.org/x/crypto, golang.org/x/text, golang.org/x/net, golang.org/x/sync, golang.org/x/sys, golang.org/x/mod, and golang.org/x/tools to newer releases for improved security and compatibility.
  • Bump github.com/quic-go/quic-go to the latest patch version to incorporate upstream fixes and security updates.

@sourcery-ai

sourcery-ai Bot commented Dec 4, 2025 •

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This PR updates several Go module dependencies, primarily quic-go and core golang.org/x libraries, to newer patch/minor versions to address recently disclosed CVEs while keeping the rest of the dependency tree in sync.

File-Level Changes

Change Details Files
Update security-sensitive golang.org/x libraries to patched versions addressing recent CVEs.
  • Bump golang.org/x/crypto from v0.41.0 to v0.43.0, pulling in upstream security fixes.
  • Bump golang.org/x/text from v0.28.0 to v0.30.0 to incorporate latest text-processing fixes and potential CVE remediations.
  • Bump golang.org/x/net from v0.43.0 to v0.45.0 for network stack and HTTP-related security updates.
  • Bump golang.org/x/sys from v0.35.0 to v0.37.0 for OS and syscall layer updates.
  • Bump golang.org/x/sync from v0.16.0 to v0.17.0 as part of keeping the x/ ecosystem aligned with the new versions.
go.mod
go.sum
Update quic-go and related tooling dependencies to compatible patch versions.
  • Bump github.com/quic-go/quic-go from v0.54.0 to v0.54.1 to pick up latest QUIC implementation fixes, including CVE patches.
  • Bump golang.org/x/mod from v0.26.0 to v0.28.0 to match updated module tooling expectations.
  • Bump golang.org/x/tools from v0.35.0 to v0.37.0 to stay compatible with newer x/* versions and development tooling.
go.mod
go.sum

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there - I've reviewed your changes - here's some feedback:

  • The upgrades for golang.org/x/crypto, x/text, x/net, x/sync, x/sys, and github.com/quic-go/quic-go look like security-driven, but golang.org/x/mod and golang.org/x/tools are being downgraded; double-check whether those downgrades are intentional and compatible with your tooling and build pipeline.
  • Since only go.mod changes are shown, confirm that go.sum has been updated (e.g., via go mod tidy) so the dependency graph remains consistent for reproducible builds.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The upgrades for `golang.org/x/crypto`, `x/text`, `x/net`, `x/sync`, `x/sys`, and `github.com/quic-go/quic-go` look like security-driven, but `golang.org/x/mod` and `golang.org/x/tools` are being downgraded; double-check whether those downgrades are intentional and compatible with your tooling and build pipeline.
- Since only go.mod changes are shown, confirm that `go.sum` has been updated (e.g., via `go mod tidy`) so the dependency graph remains consistent for reproducible builds.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@iFurySt
iFurySt merged commit 8464abb into AmoyLab:main Dec 4, 2025
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.

2 participants