Go Vulnerability Database
GO-2026-5039
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | stdlib | All versions before 1.25.11 (fixed in 1.25.11) From 1.26.0-0 before 1.26.4 (fixed in 1.26.4) |