inside the gene... CVSS 6.1 MEDIUM.", "author": {"@type": "Organization", "name": "White Hats Nepal"}, "publisher": {"@id": "https://blog.pentestnepal.tech/#organization"}, "datePublished": "2026-04-22", "dateModified": "2026-05-18", "mainEntityOfPage": "https://blog.pentestnepal.tech/cve/cve-2026-6019/", "inLanguage": "en"}, {"@type": "FAQPage", "mainEntity": [{"@type": "Question", "name": "What is CVE-2026-6019?", "acceptedAnswer": {"@type": "Answer", "text": "CVE-2026-6019 is a vulnerability with a CVSS score of 6.1 (MEDIUM). http.cookies.Morsel.js_output() returns an inline inside the gene..."}}, {"@type": "Question", "name": "How severe is CVE-2026-6019?", "acceptedAnswer": {"@type": "Answer", "text": "CVE-2026-6019 has been rated MEDIUM with a CVSS base score of 6.1/10. Review the CVSS metrics above for detailed severity breakdown."}}, {"@type": "Question", "name": "Is there a patch for CVE-2026-6019?", "acceptedAnswer": {"@type": "Answer", "text": "Check the references section above for vendor advisories and patch information. Affected products include: Python Cpython."}}]}]}
MEDIUM · 6.1

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 gene...

Vulnerability 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.

CVSS Score

6.1

MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE

Affected Products

VendorProductVersions
PythonCpython< 3.15.0

Related Weaknesses (CWE)

References

FAQ

What is CVE-2026-6019?

CVE-2026-6019 is a vulnerability with a CVSS score of 6.1 (MEDIUM). 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 gene...

How severe is CVE-2026-6019?

CVE-2026-6019 has been rated MEDIUM with a CVSS base score of 6.1/10. Review the CVSS metrics above for detailed severity breakdown.

Is there a patch for CVE-2026-6019?

Check the references section above for vendor advisories and patch information. Affected products include: Python Cpython.