CVE-2026-42507

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

State
Published
Severity
5.3 Medium
Published
Jun 2, 2026
Updated
Jun 3, 2026
Reserved
Apr 28, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
net/textprotoGo standard library
  • before 1.25.11Affected
  • 1.26.0-0 to before 1.26.4Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.