Skip to content

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

Description

@begininvoke

Spotted what might be an issue in go.mod around line 1.

The project uses golang.org/x/mod v0.38.0, which is vulnerable to CVE-2026-56864. A malicious GOSUMDB can serve arbitrary module content that bypasses the Go module proxy's transparency log, allowing supply‑chain attacks that can introduce hidden backdoors or malware into your build. This is a high‑severity risk because it can compromise all code that depends on affected modules without detection. Upgrading to golang.org/x/mod >= v0.40.0 eliminates the flawed GOSUMDB handling and restores proper verification of module checksums.

Something like this might fix it:

```diff
--- a/go.mod
@@
-require golang.org/x/mod v0.38.0
+require golang.org/x/mod v0.40.0
```

After applying the change, run:
```bash
go get golang.org/x/mod@v0.40.0
go mod tidy
```
This updates the dependency to the patched version and regenerates go.sum, eliminating the vulnerability.

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

I may be wrong about this one — closing it costs you nothing if so.


Found with automated scanning (RedGem) and reviewed before opening. If it is not useful, closing it is completely fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions