CVE-2026-6019: Python2.7 · http.cookies.Morsel.js_output() returns an inline <script> snippet and only escapes " for
Affects python2.7Source GCVE Database
Not known to be exploited · CVSS 2.1 Low · fixed in 2.7.6-8ubuntu0.6+esm30 : update python2.7 when convenient.
Data as of 24 Nov 2026, 21:16 UTC
Thin evidence
One scorer or none| CNA (PSF) | CVSS 4.0 | 2.1 |
|---|
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 12% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.7.6-8ubuntu0.6+esm30, 3.4.3-1ubuntu1~14.04.7+esm21, 3.5.2-2ubuntu0~16.04.4~14.04.1+esm11 +13
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 22 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10pypy3pkg:deb/ubuntu/pypy3?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSpypy3pkg:deb/ubuntu/pypy3?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSpython3.14pkg:deb/ubuntu/python3.14?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10pypy3pkg:deb/ubuntu/pypy3?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10python3.13pkg:deb/ubuntu/python3.13?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10python3.14pkg:deb/ubuntu/python3.14?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-6019 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-6019 (opens in a new tab)
- mail.python.org/archives/list/security-announce@python.org/thread/IVNWGV2BBNC3RHQAFS22UP4DY56SAXX3/ (opens in a new tab)
- ubuntu.com/security/notices/USN-8509-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8744-1 (opens in a new tab)