{"schema_version":"1.7.5","id":"GO-2026-5039","published":"2026-06-02T21:39:47Z","modified":"2026-08-31T10:25:58.939163086Z","aliases":["BIT-golang-2026-42507","CVE-2026-42507"],"related":["CGA-v7pm-5wx9-g4q8","RHSA-2026:23262","RHSA-2026:23264","RHSA-2026:29980","RHSA-2026:29981","RHSA-2026:38995","RHSA-2026:49702","RHSA-2026:49712","RHSA-2026:57649","RHSA-2026:61253"],"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.","affected":[{"package":{"name":"stdlib","ecosystem":"Go","purl":"pkg:golang/stdlib"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.25.11"},{"introduced":"1.26.0-0"},{"fixed":"1.26.4"}]}],"ecosystem_specific":{"imports":[{"path":"net/textproto","symbols":["Error.Error","Reader.ReadCodeLine","Reader.ReadMIMEHeader","Reader.ReadResponse","parseCodeLine","readMIMEHeader"]}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2026-5039.json"}}],"references":[{"type":"REPORT","url":"https://go.dev/issue/79346"},{"type":"FIX","url":"https://go.dev/cl/777060"},{"type":"WEB","url":"https://groups.google.com/g/golang-announce/c/tKs3rmcBcKw"}],"database_specific":{"review_status":"REVIEWED","url":"https://pkg.go.dev/vuln/GO-2026-5039"}}