GO-2026-5039
Arbitrary inputs are included in errors without any escaping in net/textproto
At a glance
- Published
- Updated
- CVE
- CVE-2026-42507
- Aliases
- BIT-golang-2026-42507
Description
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.
Affected packages
| Package | Versions |
|---|---|
| Go · stdlib | introduced 0, fixed 1.25.11, introduced 1.26.0-0, fixed 1.26.4 |
References
- https://go.dev/issue/79346 REPORT
- https://go.dev/cl/777060 FIX
- https://groups.google.com/g/golang-announce/c/tKs3rmcBcKw WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |