CVE-2026-42507 PUBLISHED

Arbitrary inputs are included in errors without any escaping in net/textproto

Assigner: Go
Reserved: 28.04.2026 Published: 02.06.2026 Updated: 02.06.2026

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.

Product Status

Vendor Go standard library
Product net/textproto
Versions Default: unaffected
  • affected from 0 to 1.25.11 (excl.)
  • affected from 1.26.0-0 to 1.26.4 (excl.)

References

Problem Types

  • CWE-532: Insertion of Sensitive Information into Log File