anchore / anchore/scan-action

Possible fix(deps): 2 vulnerable dependencies in go.mod

Open Beginner friendly
#762 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
287
Forks
95
Avg merge
13h 23m
Merged PRs (30d)
13

Description

This might be a false positive, but `.make/go.mod` around line 1 looked worth a second pair of eyes.

This HIGH severity vulnerability in golang.org/x/mod v0.37.0 allows a malicious GOSUMDB to serve arbitrary module content that bypasses transparency log verification. When coordinated with a compromised GOPROXY, attackers can distribute undetectable malicious modules, leading to supply chain compromise and potential remote code execution. Upgrade to v0.40.0 to enforce strict checksum validation and restore trust boundaries. Post-upgrade, clear stale sums and regenerate dependencies using `rm -rf go.sum vendor/ && go mod tidy`.

Something like this might fix it:

```diff
--- a/.make/go.mod
+++ b/.make/go.mod
@@ -1,3 +1,3 @@
require (
- golang.org/x/mod v0.37.0
+ golang.org/x/mod v0.40.0
)
# Run after applying: rm -rf go.sum vendor/ go.work.sum && go mod tidy
```

For reference: rule `CVE-2026-56864`. Rated high.

If I have misread how this is used, sorry for the noise — feel free to close.

---
*Found with automated scanning ([RedGem](https://code.redgem.net)) and reviewed before opening. If it is not useful, closing it is completely fine.*

Contributor guide

Open the contributing guide

Research direction

Start with .make/go.mod around line 1 and verify how golang.org/x/mod v0.37.0 is used before accepting the reported vulnerability and proposed upgrade. Apply the dependency update, run the listed cleanup and go mod tidy commands, and confirm the generated dependency files are consistent and the vulnerability scan no longer reports the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, go
Domain
build-system, security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.