CVE-2026-42507

MEDIUM5.3EPSS 0.03%

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

Published: 6/2/2026Modified: 6/2/2026
Also known as:GO-2026-5039

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 (1)

  • Go/stdlibfrom 0, < 1.25.11, >= 1.26.0-0, < 1.26.4

CVSS scores

SourceVersionSeverityVector
nvdCVSS 3.1MEDIUM5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

References (3)