{"schema_version":"1.3.1","id":"GO-2026-5039","modified":"2026-06-02T21:39:47Z","published":"2026-06-02T21:39:47Z","aliases":["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.","affected":[{"package":{"name":"stdlib","ecosystem":"Go"},"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"]}]}}],"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":{"url":"https://pkg.go.dev/vuln/GO-2026-5039","review_status":"REVIEWED"}}