Skip to main content
← All vulnerabilities
CVE-2026-6019

BaseCookie.js_output() does not neutralize embedded characters

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.13.14, 3.14.5rc1, 3.15.0b1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Python Software Foundation CPython

    fixed in 3.13.14; From 3.14.0a1 · fixed in 3.14.5rc1; From 3.15.0a1 · fixed in 3.15.0b1

References 6

GitHub · python/cpython

mail.python.org