ADVISORIES

Go Vulnerability Database

GO-2026-6180

Ignore unrelated, unauthenticated hashes in Lookup in golang.org/x/mod/sumdb

Details

A malicious GOSUMDB was capable of serving arbitrary module content not contained within the transparency log.

This attack allows for a coordinating GOPROXY and GOSUMDB to serve a client malicious module content that cannot be detected by evaluating the transparency log.

In order to determine if you have been affected:

rm -r go.sum go.work.sum vendor/ && go mod tidy

Affected packages

EcosystemPackageAffected versions
Gotoolchain
All versions before 1.25.13 (fixed in 1.25.13)
From 1.26.0-0 before 1.26.6 (fixed in 1.26.6)
From 1.27.0-0 before 1.27.0-rc.3 (fixed in 1.27.0-rc.3)
Gogolang.org/x/mod
All versions before 0.40.0 (fixed in 0.40.0)

References