CVE-2026-6019
python: Python: Cross-Site Scripting (XSS) vulnerability in http.cookies module
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 23, 2026
Updated · August 22, 2026
Description
A flaw was found in Python's http.cookies module. The Morsel.js_output() function, responsible for generating JavaScript output for cookies, does not properly neutralize the `` HTML sequence. This oversight could allow a remote attacker to inject malicious script into a web page, potentially leading to Cross-Site Scripting (XSS) attacks. Such an attack could result in information disclosure or arbitrary code execution within the user's browser.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
CVSS / CWE
CVSS 3.1 · 6.8CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')