Vulnerability · Published Apr 22, 2026 · Assigned by PSF

CVE-2026-6019BaseCookie.js_output() does not neutralize embedded characters

Low 2.1

In plain English

A low-severity security flaw in CPython from Python Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)2.1Low
Exploit odds (30 days)0.2%top 88.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10python3.143.14.5-1.el10_2ALSA-2026:28581
AlmaLinux:9python3.143.14.5-1.el9_8ALSA-2026:28247
AlmaLinux:10python3.14-debug3.14.5-1.el10_2ALSA-2026:28581
AlmaLinux:9python3.14-debug3.14.5-1.el9_8ALSA-2026:28247
AlmaLinux:10python3.14-devel3.14.5-1.el10_2ALSA-2026:28581
AlmaLinux:9python3.14-devel3.14.5-1.el9_8ALSA-2026:28247
AlmaLinux:10python3.14-freethreading3.14.5-1.el10_2ALSA-2026:28581
AlmaLinux:9python3.14-freethreading3.14.5-1.el9_8ALSA-2026:28247
AlmaLinux:10python3.14-freethreading-debug3.14.5-1.el10_2ALSA-2026:28581
AlmaLinux:9python3.14-freethreading-debug3.14.5-1.el9_8ALSA-2026:28247
AlmaLinux:10python3.14-freethreading-devel3.14.5-1.el10_2ALSA-2026:28581
AlmaLinux:9python3.14-freethreading-devel3.14.5-1.el9_8ALSA-2026:28247
AlmaLinux:10python3.14-freethreading-idle3.14.5-1.el10_2ALSA-2026:28581
AlmaLinux:9python3.14-freethreading-idle3.14.5-1.el9_8ALSA-2026:28247
AlmaLinux:10python3.14-freethreading-libs3.14.5-1.el10_2ALSA-2026:28581
AlmaLinux:9python3.14-freethreading-libs3.14.5-1.el9_8ALSA-2026:28247
AlmaLinux:10python3.14-freethreading-test3.14.5-1.el10_2ALSA-2026:28581
AlmaLinux:9python3.14-freethreading-test3.14.5-1.el9_8ALSA-2026:28247
AlmaLinux:10python3.14-freethreading-tkinter3.14.5-1.el10_2ALSA-2026:28581
AlmaLinux:9python3.14-freethreading-tkinter3.14.5-1.el9_8ALSA-2026:28247
AlmaLinux:10python3.14-idle3.14.5-1.el10_2ALSA-2026:28581
AlmaLinux:9python3.14-idle3.14.5-1.el9_8ALSA-2026:28247
AlmaLinux:10python3.14-libs3.14.5-1.el10_2ALSA-2026:28581
AlmaLinux:9python3.14-libs3.14.5-1.el9_8ALSA-2026:28247
AlmaLinux:10python3.14-test3.14.5-1.el10_2ALSA-2026:28581
AlmaLinux:9python3.14-test3.14.5-1.el9_8ALSA-2026:28247
AlmaLinux:10python3.14-tkinter3.14.5-1.el10_2ALSA-2026:28581
AlmaLinux:9python3.14-tkinter3.14.5-1.el9_8ALSA-2026:28247
Debian:12pypy3no fix listedDEBIAN-CVE-2026-6019
Debian:13pypy3no fix listedDEBIAN-CVE-2026-6019
Debian:14pypy3no fix listedDEBIAN-CVE-2026-6019
Debian:12python3.113.11.2-6+deb12u9DEBIAN-CVE-2026-6019
Debian:13python3.133.13.5-2+deb13u2DEBIAN-CVE-2026-6019
Debian:14python3.143.14.5~rc1-1DEBIAN-CVE-2026-6019
Rocky Linux:10python3.140:3.14.5-1.el10_2RLSA-2026:28581
Rocky Linux:9python3.140:3.14.5-1.el9_8RLSA-2026:28247
Ubuntu:22.04:LTSpypy3no fix listedUBUNTU-CVE-2026-6019
Ubuntu:24.04:LTSpypy3no fix listedUBUNTU-CVE-2026-6019
Ubuntu:25.10pypy3no fix listedUBUNTU-CVE-2026-6019
Ubuntu:26.04:LTSpypy3no fix listedUBUNTU-CVE-2026-6019
Ubuntu:26.10pypy3no fix listedUBUNTU-CVE-2026-6019
Ubuntu:22.04:LTSpython3.103.10.12-1~22.04.18USN-8744-1
Ubuntu:22.04:LTSpython3.103.10.12-1~22.04.16UBUNTU-CVE-2026-6019
Ubuntu:22.04:LTSpython3.103.10.12-1~22.04.16USN-8509-1
Ubuntu:24.04:LTSpython3.123.12.3-1ubuntu0.17USN-8744-1
Ubuntu:24.04:LTSpython3.123.12.3-1ubuntu0.15USN-8509-1
Ubuntu:24.04:LTSpython3.123.12.3-1ubuntu0.15UBUNTU-CVE-2026-6019
Ubuntu:25.10python3.13no fix listedUBUNTU-CVE-2026-6019
Ubuntu:25.10python3.14no fix listedUBUNTU-CVE-2026-6019
Ubuntu:26.04:LTSpython3.143.14.4-1ubuntu0.2USN-8744-1
Ubuntu:26.04:LTSpython3.143.14.4-1ubuntu0.1USN-8509-1
Ubuntu:26.04:LTSpython3.143.14.4-1ubuntu0.1UBUNTU-CVE-2026-6019

Affected products (as reported)

VendorProductVersions
Python Software Foundation CPython 0 – before 3.13.143.14.0a1 – before 3.14.5rc13.15.0a1 – before 3.15.0b1

Weakness: CWE-150 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

References