UnratedFix available
Arbitrary inputs are included in errors without any escaping in net/textproto
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.
Announced Source revision 1
Original source ↗GO-2026-5039
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GO-2026-5039
stdlib
Source reference: /affected/0/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 1.25.11
Source reference:
/affected/0/ranges1.26.4Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.25.11"
},
{
"introduced": "1.26.0-0"
},
{
"fixed": "1.26.4"
}
]
}
],
"package": {
"name": "stdlib",
"purl": "pkg:golang/stdlib",
"ecosystem": "Go"
},
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2026-5039.json"
},
"ecosystem_specific": {
"imports": [
{
"path": "net/textproto",
"symbols": [
"Error.Error",
"Reader.ReadCodeLine",
"Reader.ReadMIMEHeader",
"Reader.ReadResponse",
"parseCodeLine",
"readMIMEHeader"
]
}
]
}
}
]- Related CVEs
- CVE-2026-42507
Source reference:
/aliases
Publisher severity
No explicit severity was provided.
- Event
- #75187 · Revision 1
- Added to Heist Feed
- Publisher date