CVE-2026-42507
Medium
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.
SeverityMedium
CVSS5.3
Exploit probability—
ProductStdlib
PublishedJun 2, 2026
First seenJun 2, 2026
Weakness typeCWE-532CWE-532
How to fix
Update
- stdlib1.25.11, 1.26.4 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| stdlibGo | v < 1.25.11, 1.26.0-0 ≤ v < 1.26.4 | 1.25.11, 1.26.4 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.