BaseCookie.js_output() does not neutralize embedded characters
CVE-2026-6019Published 22 Apr 2026, 19:28 UTC
Real-world risk
0.2/ 10Low
Routine
If the vulnerable configuration applies to you: 0.5
PreliminaryFrom the CVSS vector only · confidence low
CVSS
2.1
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from PSF)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| CPythonUbiquitous | < 3.13.14; >= 3.14.0a1, < 3.14.5rc1; >= 3.15.0a1, < 3.15.0b1 | 3.13.14, 3.14.5rc1, 3.15.0b1 |
What to do
Update to a fixed version: 3.13.14, 3.14.5rc1, 3.15.0b1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | HighAdmin or equivalent | From the CVSS vector | 0.20 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.3% chance of exploitation in 30 days (percentile 19), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.090
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.09 × threat 0.850.230
- Rounded to one decimal between 0.1 and 100.2
Exploitation and evidence timeline
- 22 Apr 2026 Published
- 3 Dec 2026 Risk 0.2 (cvss fallback)
Weakness
CWE-150
References
- https://github.com/python/cpython/pull/148848patch
- https://github.com/python/cpython/issues/90309issue-tracking
- https://mail.python.org/archives/list/[email protected]/thread/IVNWGV2BBNC3RHQAFS22UP4DY56SAXX3/vendor-advisory
- https://github.com/python/cpython/commit/76b3923d688c0efc580658476c5f525ec8735104patch
- https://github.com/python/cpython/commit/3c59b8b53fc75c7f9578d16fb8201ceb43e8f76cpatch
- https://github.com/python/cpython/commit/f795e042043dfe26c42e1971d4502c1cdc4c65b8patch
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html
- CVE-2026-6019 on CVE.org