Skip to content

chore(deps): bump golang.org/x/mod from v0.38.0 to v0.40.0 - #5468

Merged
SoloJacobs merged 1 commit into
prometheus:mainfrom
Mostafa-Yehia:security-bump-x-mod
Aug 25, 2026
Merged

SoloJacobs merged 1 commit into
prometheus:mainfrom
Mostafa-Yehia:security-bump-x-mod

Conversation

@Mostafa-Yehia

Copy link
Copy Markdown
Contributor

Pull Request Checklist

Please check all the applicable boxes.

  • Please list all open issue(s) discussed with maintainers related to this change
    • Fixes #
  • Is this a new Receiver integration?
  • Is this a bugfix?
    • I have added tests that can reproduce the bug which pass with this bugfix applied
  • Is this a new feature?
    • I have added tests that test the new feature's functionality
  • Does this change affect performance?
    • I have provided benchmarks comparison that shows performance is improved or is not degraded
      • You can use benchstat to compare benchmarks
    • I have added new benchmarks if required or requested by maintainers
  • Is this a breaking change?
    • My changes do not break the existing cluster messages
    • My changes do not break the existing api
  • I have added/updated the required documentation
  • I have signed-off my commits
  • I will follow best practices for contributing to this project

Which user-facing changes does this PR introduce?

NONE

What does this PR do?

Fixes two HIGH severity vulnerabilities reported for the amtool binary by upgrading golang.org/x/mod from v0.38.0 to the patched release v0.40.0.

Dependency Advisory Severity Installed Fixed
golang.org/x/mod CVE-2026-56864 HIGH v0.38.0 v0.40.0
golang.org/x/mod CVE-2026-56865 HIGH v0.38.0 v0.40.0

The update also upgrades related golang.org/x/* dependencies as required by Go module dependency resolution:

  • golang.org/x/crypto v0.54.0 → v0.55.0
  • golang.org/x/net v0.57.0 → v0.58.0
  • golang.org/x/text v0.40.0 → v0.41.0
  • golang.org/x/tools v0.47.0 → v0.49.0

Validation

  • make build passes.
  • make test passes.
  • make lint passes with 0 issues.
  • The resulting amtool binary and Docker image no longer report CVE-2026-56864 or CVE-2026-56865.

@Mostafa-Yehia
Mostafa-Yehia requested a review from a team as a code owner August 24, 2026 23:31
@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: e029cc10-c1d9-408b-80e1-a7f4db882bc4

📥 Commits

Reviewing files that changed from the base of the PR and between 5082b06 and de58e48.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (1)
  • go.mod

Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

Updated direct dependencies golang.org/x/mod, golang.org/x/net, and golang.org/x/text. Updated indirect dependencies golang.org/x/crypto and golang.org/x/tools.

Changes

Go dependency updates

Layer / File(s) Summary
Module version updates
go.mod
The module file updates selected direct and indirect golang.org/x dependency versions.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: ⚪ Minimal · up to de58e

This PR updates Go module dependencies to patched versions and refreshes the dependency lockfile without changing product behavior; no actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the primary change: upgrading golang.org/x/mod from v0.38.0 to v0.40.0.
Description check ✅ Passed The description follows the repository template, explains the dependency upgrade and security impact, lists related dependency changes, records validation results, and states that there are no user-fa…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description follows the repository template, explains the dependency upgrade and security impact, lists related dependency changes, records validation results, and states that there are no user-facing changes.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@SoloJacobs
SoloJacobs merged commit 0095b28 into prometheus:main Aug 25, 2026
7 checks passed
suprjinx pushed a commit to suprjinx/alertmanager that referenced this pull request Aug 31, 2026
…s#5468)

chore(deps): bump golang.org/x/mod to fix CVEs

Signed-off-by: Mostafa-Yehia <[email protected]>
@Spaceman1701 Spaceman1701 mentioned this pull request Sep 11, 2026
Spaceman1701 pushed a commit to Spaceman1701/alertmanager that referenced this pull request Sep 11, 2026
…s#5468)

chore(deps): bump golang.org/x/mod to fix CVEs

Signed-off-by: Mostafa-Yehia <[email protected]>
Signed-off-by: Ethan Hunter <[email protected]>
Spaceman1701 pushed a commit to Spaceman1701/alertmanager that referenced this pull request Sep 16, 2026
…s#5468)

chore(deps): bump golang.org/x/mod to fix CVEs

Signed-off-by: Mostafa-Yehia <[email protected]>
Signed-off-by: Ethan Hunter <[email protected]>
SoloJacobs pushed a commit that referenced this pull request Sep 16, 2026
chore(deps): bump golang.org/x/mod to fix CVEs

Signed-off-by: Mostafa-Yehia <[email protected]>
Signed-off-by: Ethan Hunter <[email protected]>
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