Read the docs

Unescaped semicolons in Python http.cookies.Morsel attributes

Priority LOW 12CWE-74Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
None · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

CPython before 3.16.0 has a flaw in the http.cookies.Morsel class. The class keeps separator semicolons in attribute values and writes them unescaped into all output formats (CWE-74). An attacker who can control these values could relax the cookie's Domain or SameSite restrictions.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

Description from the CNA

The http.cookies.Morsel class allows separator semicolons in attribute values and includes them verbatim in all output formats. An attacker who can control these values could use this to relax the cookie's Domain or SameSite restrictions.

Why it matters now

EPSS 0.00305 23rd percentileScored 2026-11-16
Fix Fixed CPython (Python Software Foundation): 3.16.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
Python Software FoundationCPythonbefore 3.16.03.16.0Patch availableCNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*——python-pillow
  • cpe:2.3:a:python:python:*:*:*:*:*:*:*:* Versions — — ·python-pillow

Remediation

CPython 3.16.0 fixes this flaw, so upgrade affected CPython installations to 3.16.0.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

  • Fix · CNA CPython (Python Software Foundation) Fixed in 3.16.0

Timeline

  1. 2026-11-12 Threatist record created from CVE-2026-16052
  2. 2026-11-12 Alias added: GHSA-x8gr-g883-r98g

References

  • TI-2024-07037 Quadratic complexity parsing cookies with backslashes CVSS 3.1HIGH 7.5
  • TI-2024-11791 Bypass extraction filter to modify file metadata outside extraction directory CVSS 3.1MEDIUM 5.3
  • TI-2024-00411 Quoted zip-bomb protection for zipfile CVSS 3.1MEDIUM 6.2
  • TI-2026-13296 `HTTPPasswordMgr` can send saved HTTPS credentials via HTTP because of incorrect scheme matching CVSS 4.0MEDIUM 6.0
  • TI-2024-06422 Email header injection due to unquoted newlines CVSS 3.1MEDIUM 5.5
  • TI-2026-04606 Possible to hijack modules in current working directory CVSS 4.0MEDIUM 5.6
See all 88 →

Sources