// Security Advisory Triage
http.cookies.Morsel allows semicolons in attribute values, enabling Domain and SameSite bypass
Python security announcements · published 2026-11-14 18:04 UTC
WHAT CHANGEDCVE-2026-16052 documents that the http.cookies.Morsel class in CPython's standard library does not escape separator semicolons in cookie attribute values and includes them verbatim in output. An attacker who controls these values can inject additional attributes to relax Domain or SameSite restrictions. Python rates this LOW severity.
WHY IT MATTERSApplications that pass untrusted input into cookie attribute values can have their Domain or SameSite protections bypassed, allowing cookies to be sent to unintended domains or in cross-site contexts. This affects any code using http.cookies.Morsel to construct Set-Cookie headers with attacker-influenced attribute values.
WHAT TO DOCheck whether your application uses http.cookies.Morsel with user-controlled input in cookie attributes (not just cookie values). If so, verify exposure to the CVE and apply the fix when available. Remediation: see https://github.com/python/cpython/pull/161711
Model-reported confidence 85% (not measured accuracy)
Primary source ↗
written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+## [Security-announce][CVE-2026-16052] Cookie Attribute Injection via Unescaped Semicolons in http.cookies.Morsel +https://mail.python.org/archives/list/security-announce@python.org/message/IZL4QUFV7PKGT2JYSU2DCBMLTWYJDGKZ/ +Thu, 12 Nov 2026 16:07:16 +0000 + +There is a LOW severity vulnerability affecting CPython. + +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. + +Please see the linked CVE ID for the latest information on affected +versions: + +* https://www.cve.org/CVERecord?id=CVE-2026-16052 +* https://github.com/python/cpython/pull/161711
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
| triage verdict | MATERIAL at 0.78, needed 0.5 |
|---|---|
| triage reasoning | Python stdlib cookie handling vulnerability affecting security controls that platform leads must evaluate for patching. |
| signals | Python runtime vulnerability · http.cookies module affected · Cookie security restriction bypass (Domain, SameSite) · CVE assigned and documented · Affects standard library in dependency tree |
| suppression | — |
| triage model | anthropic/claude-haiku-4.5 ($0.00000) |
| writer model | anthropic/claude-sonnet-4.5 ($0.00000) |