published 22 Apr 2026 · updated 10 Nov 2026
BaseCookie.js_output() does not neutralize embedded characters
3.1LowCVSS 2.1EPSS 0%1 public exploits
A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.13.14, 3.14.5rc1 and 3.15.0b1.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Python | python | <3.13.14, >=3.14.0 <=3.14.4, =3.15.0 | 3.13.14 |
| Python Software Foundation | <3.13.14, >=3.14.0a1 <3.14.5rc1, >=3.15.0a1 <3.15.0b1 | 3.13.14, 3.14.5rc1, 3.15.0b1 |
Exploit evidence
1 public sources
github_poc
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket