GO-2026-5039

Source
https://pkg.go.dev/vuln/GO-2026-5039
Import Source
https://vuln.go.dev/ID/GO-2026-5039.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2026-5039
Aliases
  • CVE-2026-42507
Published
2026-06-02T21:39:47Z
Modified
2026-06-02T22:00:13.045271256Z
Summary
Arbitrary inputs are included in errors without any escaping in net/textproto
Details

When returning errors, functions in the net/textproto package would include its input as part of the error. This might allow an attacker to inject misleading content to errors that are printed or logged.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2026-5039"
}
References

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.25.11
Introduced
1.26.0-0
Fixed
1.26.4

Ecosystem specific

{
    "imports": [
        {
            "path": "net/textproto",
            "symbols": [
                "Error.Error",
                "Reader.ReadCodeLine",
                "Reader.ReadMIMEHeader",
                "Reader.ReadResponse",
                "parseCodeLine",
                "readMIMEHeader"
            ]
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-5039.json"