What’s Vulnerable › Vulnerabilities

CVE-2026-6019: BaseCookie.js_output() does not neutralize embedded characters

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.

Affected products

How to fix

Upgrade to a fixed version: Python 3.13.14. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-6019 or the next vulnerability affects your stack