Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessVictim client requests attacker-controlled host
-
ExploitResponse sends expired Set-Cookie for victim domain
-
ExecutionCookieJar clears cross-domain cookie without policy check
-
ImpactVictim's stored session cookie removed, forcing re-authentication
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
|
| Exploitation Conditions | Exploitation requires that the target application reuse a single CookieJar across more than one domain - the canonical case being urllib's HTTPCookieProcessor serving requests to multiple hosts from one shared jar. The attacker must be able to return an HTTP response to that client (operating a server the client contacts, or a man-in-the-middle position) carrying an already-expired Set-Cookie (Max-Age=0 or a past Expires date) whose Domain/Path attributes point at a cookie belonging to a different site. Limiting factors: no authentication is needed (PR:N) and no user interaction, but the attacker can only delete cookies, never read them; a per-request or per-domain cookie jar is not affected, and patched CPython versions consult the cookie policy (RFC 6265 §5.3) before allowing an expired cookie to remove an existing one. |
| Impact | This is a medium-severity integrity flaw, not a critical issue. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) scores 6.3: network-reachable and unauthenticated (PR:N), but the AT:P flag signals a real attack requirement - the victim application must use a single CookieJar shared across multiple domains (e.g. urllib's HTTPCookieProcessor) and must process an HTTP response the attacker controls. The only impact is integrity-low (VI:L): an attacker can delete another domain's cookies but cannot read them (VC:N) or deny service (VA:N). There is no KEV listing and no EPSS score in the provided data, so widespread or active exploitation is not indicated; the status is no public exploit identified at time of analysis, though the fixing PR ships test cases that demonstrate the cross-domain deletion mechanism. The vuln.today priority is this_month (not act_now/emergency), which is consistent with a correctness/hardening fix rather than an urgent threat. Note a data conflict: the 'Information Disclosure' tag contradicts the CVSS impact (VC:N, VI:L) - this is a cookie-deletion/integrity flaw (CWE-346 origin-validation), not disclosure. |
| Exploit ScenarioDerived | An application uses one urllib/http.cookiejar CookieJar for requests to several sites. The victim's client contacts an attacker-controlled (or MITM-intercepted) host, which returns a Set-Cookie header such as 'session=x; Domain=.victim.test; Path=/; Max-Age=0'. On affected CPython versions the CookieJar deletes the victim.test session cookie without consulting the cookie policy, dropping the user's session state. No public exploit is identified, but the patch's regression tests demonstrate the deletion. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 09, 2026
Cross-domain cookie deletion in CPython's http.cookiejar lets a hostile server sharing a CookieJar with other sites erase stored cookies it does not own. A response carrying an already-expired Set-Cookie header (Max-Age=0 or a past Expires date) whose Domain or Path attributes point at another site's cookie causes CookieJar to clear that entry without ever consulting the cookie policy, contrary to RFC 6265 section 5.3. Only applications that reuse a single jar across multiple hosts are exposed, the canonical case being urllib's HTTPCookieProcessor, and the attacker can delete cookies but never read them; no public exploit code or confirmed active exploitation was identified at time of analysis, and the PSF advisory with merged pull request 161570 carries the fix.
RemediationAI
Apply the CPython update that contains the change merged in pull request 161570, announced through the PSF security-announce advisory (https://mail.python.org/archives/list/security-announce@python.org/thread/Y6IKNZ2VZUS2L6CLQICSFUEMCLT7OLTY/); the fix makes expired-cookie deletion conditional on CookieJar's policy approving the cookie for the request, per RFC 6265 section 5.3. The provided data lists the patch as available from the vendor and identifies the upstream commit, but does not state a tagged CPython release version, so confirm the fixed interpreter build against the advisory before closing out. Where an immediate interpreter upgrade is not possible, the exposure can be removed by not sharing a single CookieJar across hosts, for example instantiating a separate CookieJar and HTTPCookieProcessor per domain, at the cost of losing cookie continuity for workflows that deliberately span sites. A stricter option is supplying a CookiePolicy whose set_ok() rejects cookies whose Domain does not match the request host, or blocking the relevant domains via DefaultCookiePolicy(blocked_domains=[...]) as exercised in the new regression tests; the trade-off is that legitimate cookies for those domains are also refused. Note that the impact is limited to deletion of stored cookies, since the attacker cannot read cookie values through this flaw.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CPython's http.cookiejar implements the RFC 6265 cookie storage model through CookieJar, with a pluggable CookiePolicy (DefaultCookiePolicy by default) that decides via set_ok() whether an incoming cookie may be stored or removed. The flaw is CWE-346 (origin validation error): in CookieJar._cookie_from_cookie_tuple the expiry branch treated any Set-Cookie whose expires value was at or before the current time as a deletion request and called self.clear(domain, path, name) directly with the Domain and Path attributes taken from that header, bypassing the policy check that guards normal storage. Because the header's own attributes supplied the lookup key rather than the request host, a response served by one origin could name a cookie belonging to a different domain in a shared jar. The patch constructs the Cookie object first and only invokes clear() when self._policy.set_ok(cookie, request) returns true, aligning the deletion path with RFC 6265 section 5.3 steps 6 and 11-12, which require the Domain attribute to match the request host before an existing cookie is removed. Added regression tests cover a cross-domain expired cookie, an expired cookie for another path under strict_ns_set_path, and an expired cookie for a policy-blocked domain. The supplied CPE cpe:2.3:a:python_software_foundation:cpython:*:*:*:*:*:*:*:* is fully wildcarded, so the input data does not pin the flaw to specific release branches.
Know when Cpython gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Reachable via an attacker HTTP response (AV:N, PR:N) but requires a shared cross-domain cookie jar (AC:H); impact limited to cookie deletion (I:L, C:N, A:N).
Primary rating from Vendor (PSF).
CVSS VectorVendor: PSF
DescriptionCVE.org
http.cookiejar.CookieJar deleted a stored cookie when a response carried an already expired Set-Cookie header for it, using the Domain and Path attributes from the header without consulting the cookie policy. A server could therefore delete cookies belonging to other domains from a shared cookie jar, such as the one used by urllib's HTTPCookieProcessor. The fix consults the cookie policy before an expired cookie may delete an existing one, as required by RFC 6265 section 5.3.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Integrity bypass in CPython's stringprep module causes divergent domain name normalization when processing international
CPython's ssl module validates TLS certificate chains that anchor to known-compromised eMudhra CA certificates, so anyon
A use-after-free in CPython's ssl module lets a remote, unauthenticated TLS client crash a Python TLS server process - o
CPython decompression modules (lzma, bz2, gzip) allow memory corruption via use-after-free when decompressor instances a
Out-of-bounds buffer write in CPython's asyncio.ProactorEventLoop (Windows only) allows remote attackers to trigger memo
Denial of service in CPython's tarfile module allows remote attackers to trigger an infinite loop by supplying a crafted
Stack-based buffer overflow in CPython's bz2.BZ2Decompressor allows remote attackers to crash Python applications by sen
FIPS algorithm enforcement in CPython 3.14.10's hashlib module can fail for hash requests made with usedforsecurity=True
Path traversal in CPython's tarfile module allows a crafted tar archive to bypass the 'data' and 'tar' extraction filter
Certificate hostname verification is silently skipped in CPython's TLS stack when an application enables SSLContext.chec
Command injection in CPython's webbrowser.open() API bypasses previous CVE-2026-4519 mitigation via specially crafted UR
The webbrowser.open() API in CPython accepts URLs with leading dashes, which certain web browsers interpret as command-l
EUVD-2026-120068
GHSA-chc2-vx2q-cwqf
NVD
CVE.org
EPSS
Exploit-DB