Skip to content

fix: upgrade packages to fix new CVEs#308

Merged
iFurySt merged 1 commit intoAmoyLab:mainfrom
kx-byte:main
Mar 19, 2026
Merged

fix: upgrade packages to fix new CVEs#308
iFurySt merged 1 commit intoAmoyLab:mainfrom
kx-byte:main

Conversation

@kx-byte
Copy link
Contributor

@kx-byte kx-byte commented Mar 18, 2026

Summary by Sourcery

Update Go module dependencies to newer versions to address security vulnerabilities and keep third-party libraries current.

Bug Fixes:

  • Resolve security vulnerabilities by upgrading affected dependencies, including OpenTelemetry, golang.org/x packages, and related transitive libraries.

Enhancements:

  • Refresh various direct and indirect Go dependencies (e.g., compression, QUIC, validation, and protobuf libraries) to their latest compatible releases and clean up unused modules.

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Mar 18, 2026

Reviewer's Guide

This PR updates multiple direct and indirect Go module dependencies (notably OpenTelemetry, golang.org/x libraries, gRPC ecosystem, and several JSON/HTTP-related libs) to newer versions and adjusts a few modules’ direct/indirect status to address CVEs while keeping the codebase compiling against the updated APIs.

File-Level Changes

Change Details Files
Upgrade OpenTelemetry and related instrumentation stack to latest compatible versions.
  • Bump go.opentelemetry.io/otel core, sdk, trace, metric, and OTLP exporters from 1.38.0 to 1.40.0
  • Bump gin and net/http OpenTelemetry contrib instrumentation from 0.63.0 to 0.65.0
  • Bump go.opentelemetry.io/auto/sdk from 1.1.0 to 1.2.1
  • Update go.opentelemetry.io/proto/otlp from 1.7.1 to 1.9.0
go.mod
go.sum
Refresh core golang.org/x and gRPC/genproto dependencies to newer patch/minor versions, likely to pick up security fixes.
  • Update golang.org/x/crypto, x/oauth2, x/text, x/net, x/sync, x/sys, and x/arch to newer versions
  • Update google.golang.org/grpc to 1.78.0 and google.golang.org/genproto googleapis/api and googleapis/rpc to newer pseudo-versions
  • Keep golang.org/x/net as a direct dependency while bumping its version
go.mod
go.sum
Update HTTP/encoding/JSON-related and other utility libraries to recent versions, including QUIC, JSON, validation, and mimetype detection.
  • Upgrade github.com/quic-go/quic-go and qpack to 0.59.0/0.6.0
  • Upgrade github.com/bytedance/sonic and loader, go-playground/validator, goccy/go-yaml, grpc-gateway, mimetype, ugorji/go/codec, and others to latest referenced versions
  • Adjust github.com/andybalholm/brotli and github.com/klauspost/compress to be direct requirements instead of indirect
go.mod
go.sum
Tidy Go module metadata by dropping no-longer-needed or superseded indirect dependencies.
  • Remove direct dependency on github.com/mattn/go-sqlite3, relying instead on glebarez/go-sqlite-based stack
  • Drop unused github.com/rogpeppe/go-internal and go.opentelemetry.io/otel/mock-related indirects
  • Re-balance which modules are listed in main require block vs. indirect require blocks
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

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


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 296ffeb into AmoyLab:main Mar 19, 2026
6 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.

2 participants