CVE-2026-6019

MEDIUMCVSS 6.1/10EPSS 0.23%

Last modified

CVE-2026-6019 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 0.23% chance of exploitation in the next 30 days.

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.

Metrics

Weakness Enumeration

Affected Software

VendorProductVersionsUpdate
PythonPython< 3.13.14—
PythonPython>= 3.14.0, <= 3.14.4—
PythonPython3.15.0Alpha1

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is CVE-2026-6019?
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.
How severe is CVE-2026-6019?
CVE-2026-6019 has a CVSS score of 6.1/10 (MEDIUM severity). The EPSS model estimates a 0.23% probability of exploitation in the next 30 days.
How do I fix CVE-2026-6019?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2026

Are you affected by CVE-2026-6019?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST