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.
CVE-2026-6019
CVSS base score
6.1 (v3.1)
Severity
MEDIUM
Attack vector
Network
Weakness
CWE-150, CWE-116
Last modified
November 10, 2026
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected products
python python
References
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Exploit, Issue Tracking
- github.com Issue Tracking, Patch
- mail.python.org Mailing List, Vendor Advisory
- cert-portal.siemens.com