{"id":"CVE-2026-42507","revision":"0fa4e84648074045bed627a9a7a1053b","records":[{"revision":"0fa4e84648074045bed627a9a7a1053b","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-42507","aliases":[],"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.","state":0,"publishedAt":"2026-06-02T22:01:37.307+00:00","modifiedAt":"2026-06-03T19:04:45.361+00:00","affected":[{"ecosystem":"https://pkg.go.dev","name":"net/textproto","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Go standard library\",\n                    \"product\": \"net/textproto\",\n                    \"collectionURL\": \"https://pkg.go.dev\",\n                    \"packageName\": \"net/textproto\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"1.25.11\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"1.26.0-0\",\n                            \"lessThan\": \"1.26.4\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"parseCodeLine\"\n                        },\n                        {\n                            \"name\": \"Reader.ReadCodeLine\"\n                        },\n                        {\n                            \"name\": \"readMIMEHeader\"\n                        },\n                        {\n                            \"name\": \"Error.Error\"\n                        },\n                        {\n                            \"name\": \"Reader.ReadMIMEHeader\"\n                        },\n                        {\n                            \"name\": \"Reader.ReadResponse\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[],"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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-42507","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-42507","identifiers":["CVE-2026-42507"]},"retained":false,"historicalAffected":[]}],"coverage":[]}