What’s Vulnerable › Vulnerabilities

CVE-2026-42507: Arbitrary inputs are included in errors without any escaping in net/textproto

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 products

How to fix

Upgrade to a fixed version: Go Stdlib 1.25.11, 1.26.4; Go standard library net/textproto 1.25.11, 1.26.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-42507 or the next vulnerability affects your stack