CVE-2026-6019

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

VendorProductVersionsFixed
Pythonpython<3.13.14, >=3.14.0 <=3.14.4, =3.15.03.13.14
Python Software Foundation<3.13.14, >=3.14.0a1 <3.14.5rc1, >=3.15.0a1 <3.15.0b13.13.14, 3.14.5rc1, 3.15.0b1

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-6019 severity on Zeptric[![CVE-2026-6019](https://zeptric.io/badge/cve/CVE-2026-6019.svg)](https://zeptric.io/cve/CVE-2026-6019)