{"id":"CVE-2026-42507","sourceIdentifier":"security@golang.org","published":"2026-06-02T23:16:38.027","lastModified":"2026-07-22T19:10:00.120","vulnStatus":"Awaiting Analysis","cveTags":[],"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."},{"lang":"es","value":"Al devolver errores, las funciones en el paquete net/textproto incluirían su entrada como parte del error. Esto podría permitir a un atacante inyectar contenido engañoso en errores que son impresos o registrados."}],"affected":[{"source":"security@golang.org","affectedData":[{"vendor":"Go standard library","product":"net/textproto","defaultStatus":"unaffected","collectionURL":"https://pkg.go.dev","packageName":"net/textproto","programRoutines":[{"name":"parseCodeLine"},{"name":"Reader.ReadCodeLine"},{"name":"readMIMEHeader"},{"name":"Error.Error"},{"name":"Reader.ReadMIMEHeader"},{"name":"Reader.ReadResponse"}],"versions":[{"version":"0","lessThan":"1.25.11","versionType":"semver","status":"affected"},{"version":"1.26.0-0","lessThan":"1.26.4","versionType":"semver","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","baseScore":5.3,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE"},"exploitabilityScore":3.9,"impactScore":1.4}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-06-03T19:04:08.223332Z","id":"CVE-2026-42507","options":[{"exploitation":"none"},{"automatable":"yes"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"references":[{"url":"https://go.dev/cl/777060","source":"security@golang.org"},{"url":"https://go.dev/issue/79346","source":"security@golang.org"},{"url":"https://groups.google.com/g/golang-announce/c/tKs3rmcBcKw","source":"security@golang.org"},{"url":"https://pkg.go.dev/vuln/GO-2026-5039","source":"security@golang.org"}]}