{"id":"CVE-2026-6019","state":"PUBLISHED","title":"BaseCookie.js_output() does not neutralize embedded characters","description":"http.cookies.Morsel.js_output() returns an inline <script> snippet and only escapes \" for JavaScript string context. It does not neutralize the HTML parser-sensitive sequence </script> inside the generated script element. Mitigation base64-encodes the cookie value to disallow escaping using cookie value.","publishedAt":"2026-04-22T19:28:08.720Z","updatedAt":"2026-06-10T18:58:07.798Z","severity":{"score":2.1,"label":"Low","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","source":"PSF"},"assigner":"PSF","products":["Python Software Foundation CPython"],"affected":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.13.14","versionType":"python"},{"version":"3.14.0a1","status":"affected","lessThan":"3.14.5rc1","versionType":"python"},{"version":"3.15.0a1","status":"affected","lessThan":"3.15.0b1","versionType":"python"}],"repo":"https://github.com/python/cpython"}],"references":["https://github.com/python/cpython/pull/148848","https://github.com/python/cpython/issues/90309","https://mail.python.org/archives/list/security-announce@python.org/thread/IVNWGV2BBNC3RHQAFS22UP4DY56SAXX3/","https://github.com/python/cpython/commit/76b3923d688c0efc580658476c5f525ec8735104","https://github.com/python/cpython/commit/3c59b8b53fc75c7f9578d16fb8201ceb43e8f76c","https://github.com/python/cpython/commit/f795e042043dfe26c42e1971d4502c1cdc4c65b8"],"weaknesses":["CWE-150"],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/6xxx/CVE-2026-6019.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-6019","state":"PUBLISHED","datePublished":"2026-04-22T19:28:08.720Z","dateUpdated":"2026-06-10T18:58:07.798Z","assignerShortName":"PSF","assignerOrgId":"28c92f92-d60d-412d-b760-e73465c3df22","dateReserved":"2026-04-09T15:35:00.668Z"},"containers":{"cna":{"title":"BaseCookie.js_output() does not neutralize embedded characters","descriptions":[{"lang":"en","value":"http.cookies.Morsel.js_output() returns an inline <script> snippet and only escapes \" for JavaScript string context. It does not neutralize the HTML parser-sensitive sequence </script> inside the generated script element. Mitigation base64-encodes the cookie value to disallow escaping using cookie value."}],"affected":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.13.14","versionType":"python"},{"version":"3.14.0a1","status":"affected","lessThan":"3.14.5rc1","versionType":"python"},{"version":"3.15.0a1","status":"affected","lessThan":"3.15.0b1","versionType":"python"}],"repo":"https://github.com/python/cpython"}],"references":[{"url":"https://github.com/python/cpython/pull/148848","tags":["patch"]},{"url":"https://github.com/python/cpython/issues/90309","tags":["issue-tracking"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/IVNWGV2BBNC3RHQAFS22UP4DY56SAXX3/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/commit/76b3923d688c0efc580658476c5f525ec8735104","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/3c59b8b53fc75c7f9578d16fb8201ceb43e8f76c","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/f795e042043dfe26c42e1971d4502c1cdc4c65b8","tags":["patch"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":2.1,"baseSeverity":"LOW","exploitMaturity":"NOT_DEFINED","privilegesRequired":"HIGH","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-150","description":"CWE-150 Improper neutralization of escape, meta, or control sequences","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"PSF","orgId":"28c92f92-d60d-412d-b760-e73465c3df22","dateUpdated":"2026-06-10T18:58:07.798Z"},"credits":[{"lang":"en","type":"reporter","value":"oolongeya (https://github.com/komi22)"},{"lang":"en","type":"coordinator","value":"Seth Larson (https://github.com/sethmlarson)"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.6.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-04-22T20:02:17.071906Z","id":"CVE-2026-6019","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-22T20:02:34.468Z"}}]}}}