{"id":"CVE-2026-42507","state":"PUBLISHED","title":"Arbitrary inputs are included in errors without any escaping in net/textproto","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.","publishedAt":"2026-06-02T22:01:37.307Z","updatedAt":"2026-06-03T19:04:45.361Z","severity":{"score":5.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"CISA-ADP"},"assigner":"Go","products":["Go standard library net/textproto"],"affected":[{"vendor":"Go standard library","product":"net/textproto","packageName":"net/textproto","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.25.11","versionType":"semver"},{"version":"1.26.0-0","status":"affected","lessThan":"1.26.4","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"parseCodeLine"},{"name":"Reader.ReadCodeLine"},{"name":"readMIMEHeader"},{"name":"Error.Error"},{"name":"Reader.ReadMIMEHeader"},{"name":"Reader.ReadResponse"}]}],"references":["https://go.dev/issue/79346","https://go.dev/cl/777060","https://groups.google.com/g/golang-announce/c/tKs3rmcBcKw","https://pkg.go.dev/vuln/GO-2026-5039"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/42xxx/CVE-2026-42507.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-42507","state":"PUBLISHED","datePublished":"2026-06-02T22:01:37.307Z","dateUpdated":"2026-06-03T19:04:45.361Z","assignerShortName":"Go","assignerOrgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateReserved":"2026-04-28T00:21:12.792Z"},"containers":{"cna":{"title":"Arbitrary inputs are included in errors without any escaping in net/textproto","descriptions":[{"lang":"en","value":"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":[{"vendor":"Go standard library","product":"net/textproto","packageName":"net/textproto","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.25.11","versionType":"semver"},{"version":"1.26.0-0","status":"affected","lessThan":"1.26.4","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"parseCodeLine"},{"name":"Reader.ReadCodeLine"},{"name":"readMIMEHeader"},{"name":"Error.Error"},{"name":"Reader.ReadMIMEHeader"},{"name":"Reader.ReadResponse"}]}],"references":[{"url":"https://go.dev/issue/79346"},{"url":"https://go.dev/cl/777060"},{"url":"https://groups.google.com/g/golang-announce/c/tKs3rmcBcKw"},{"url":"https://pkg.go.dev/vuln/GO-2026-5039"}],"problemTypes":[{"descriptions":[{"lang":"en","description":"CWE-532: Insertion of Sensitive Information into Log File"}]}],"providerMetadata":{"shortName":"Go","orgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateUpdated":"2026-06-02T22:01:37.307Z"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.3,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","integrityImpact":"LOW","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-06-03T19:04:08.223332Z","id":"CVE-2026-42507","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-03T19:04:45.361Z"}}]}}}