{"id":"CVE-2026-6019","published":"2026-04-22T19:28:08Z","modified":"2026-11-10T12:40:32Z","title":"BaseCookie.js_output() does not neutralize embedded characters","vendor":"Python Software Foundation","product":"CPython","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.1,"severity":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00219,"percentile":0.12639,"provenance":"source"},"cwes":[{"id":"CWE-150","name":"Improper Neutralization of Escape, Meta, or Control Sequences"}],"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"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[]}],"priority":{"score":4.0,"factors":[{"name":"EPSS percentile","points":2.53},{"name":"CVSS severity","points":1.47}]},"vendorSlug":"python-software-foundation","affectedVersions":[{"vendor":"Python Software Foundation","product":"CPython","versions":["< 3.13.14",">= 3.14.0a1, < 3.14.5rc1",">= 3.15.0a1, < 3.15.0b1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-22T20:02:17.071906Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-25079","exploited":false,"provenance":"source"}}