CVE-2026-42507

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

Published Jun 2, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-20
CWE-532
Type Values Removed Values Added
Weaknesses CWE-20
CWE-532
Type Values Removed Values Added
Weaknesses CWE-107
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Golang
Golang net
Vendors & Products Golang
Golang net
Type Values Removed Values Added
Weaknesses CWE-107
Type Values Removed Values Added
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.
Title Arbitrary inputs are included in errors without any escaping in net/textproto
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Jun 3, 2026, 7:04 PM
Reserved
Apr 28, 2026, 12:21 AM
Status
Awaiting Analysis
Published
Jun 2, 2026, 11:16 PM
Modified
Jul 22, 2026, 7:10 PM
Severity
Moderate
Public date
Jun 2, 2026, 10:01 PM