Advisory

GO-2026-5039

Also known as: BIT-golang-2026-42507, CVE-2026-42507

Summary

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

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-06-02 21:39 UTC
Modified
2026-11-14 13:12 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.25.11, introduced 1.26.0-0, fixed 1.26.4 (semver)

Fixed versions

1.25.11, 1.26.4

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences