CVE-2026-6019: http.cookies.Morsel.js_output() returns an inline <script> snippet and only escapes " for JavaScript
Source GCVE Database
Not known to be exploited · CVSS 2.1 Low · fixed in 3.15.0b1 : update CPython when convenient.
Data as of 10 Nov 2026, 16:36 UTC
Thin evidence
One scorer or none| CNA (PSF) | CVSS 4.0 | 2.1 |
|---|
- Patch
- Available – fixed in 3.15.0b1, 3.14.5rc1, 3.13.14
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 22 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 10 Nov 2026.
What to do
Upgrade CPython to 3.15.0b1, 3.14.5rc1 or 3.13.14.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
PyPIcpythonpkg:pypi/cpythonOther threats | Affected
| Fixed in– |
GitHubCPythonpkg:github/CPythonOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- nvd.nist.gov/vuln/detail/CVE-2026-6019 (opens in a new tab)
- github.com/python/cpython/issues/90309 (opens in a new tab)
- github.com/python/cpython/pull/148848 (opens in a new tab)
- github.com/python/cpython/commit/3c59b8b53fc75c7f9578d16fb8201ceb43e8f76c (opens in a new tab)
- github.com/python/cpython/commit/76b3923d688c0efc580658476c5f525ec8735104 (opens in a new tab)
- github.com/python/cpython/commit/f795e042043dfe26c42e1971d4502c1cdc4c65b8 (opens in a new tab)
- cert-portal.siemens.com/productcert/html/ssa-457936.html (opens in a new tab)
- mail.python.org/archives/list/security-announce@python.org/thread/IVNWGV2BBNC3RHQAFS22UP4DY56SAXX3 (opens in a new tab)