Unescaped semicolons in Python http.cookies.Morsel attributes
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
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Python Software Foundation | CPython | before 3.16.0 | 3.16.0 | Patch available | CNA |
- CPython VendorPython Software Foundation Affected before 3.16.0 Fixed in 3.16.0 Patch available CNA
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| 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
- 2026-11-12 Threatist record created from CVE-2026-16052
- 2026-11-12 Alias added: GHSA-x8gr-g883-r98g
References
More Python Software Foundation vulnerabilities
- 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
Sources
- CVE-2026-16052 · CVE Program
- CVE-2026-16052 · NVD
- FIRST EPSS
- GHSA-x8gr-g883-r98g · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences