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

PackageVersions
Go · stdlibintroduced 0, fixed 1.25.11, introduced 1.26.0-0, fixed 1.26.4

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database