← CVE Intelligence

CVE-2026-6019

BaseCookie.js_output() does not neutralize embedded characters PUBLISHED

Description (CNA)

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 (CNA)

Vendor / productVersions
Python Software Foundation / CPythonaffected 0 before 3.13.14; affected 3.14.0a1 before 3.14.5rc1; affected 3.15.0a1 before 3.15.0b1

CWE

CWE-150

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.