CVE 2.1 LOW

BaseCookie.js_output() does not neutralize embedded characters_CVE-2026-6019

2.1 / 10
LOW
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

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.

Basic Information

ID CVE-2026-6019
Source PSF
Published Apr 22, 2026 at 19:28
Modified Apr 22, 2026 at 20:02

Affected Product

Vendor Python Software Foundation
Product CPython
Affected Versions Python Software Foundation CPython 0

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.