CVE-2026-42507: Arbitrary inputs are included in errors without any escaping in net/textproto

Published Jun 2, 2026
·
Updated

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

Other sources

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.

MITRE

Affected Software

4 affected componentsFixes available
golang/net/textproto
Microsoft azl3 golang 1.26.3-1
Microsoft azl3 golang 1.26.4-3<1.26.4-1
1.26.4-1
Microsoft azl3 golang 1.26.3-1<1.26.4-1
1.26.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.26.4-1

Event History

Jun 2, 2026
CVE Published
via MITRE·10:01 PM
Data Sourced
via MITRE·10:01 PM
DescriptionWeakness
Data Sourced
via Red Hat·11:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·11:16 PM
DescriptionSeverity
Jun 5, 2026
Data Sourced
via Microsoft·08:02 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:02 AM
DescriptionSeverity
Aug 5, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-42507?

CVE-2026-42507 has a medium severity rating of 5.3 on the CVSS scale.

2

What are the potential impacts of CVE-2026-42507?

CVE-2026-42507 could allow an attacker to inject misleading content into errors that are printed or logged.

3

How do I fix CVE-2026-42507?

To mitigate CVE-2026-42507, ensure that inputs are properly sanitized and escaped before being included in error messages.

4

Which software is affected by CVE-2026-42507?

CVE-2026-42507 affects the net/textproto package of golang.

5

When was CVE-2026-42507 published?

CVE-2026-42507 was published on June 2, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203