Skip to main content

CPython CVE-2026-124249

| EUVDEUVD-2026-120068 MEDIUM
Origin Validation Error (CWE-346)
2026-11-09 PSF GHSA-chc2-vx2q-cwqf
6.3
CVSS 4.0 · Vendor: PSF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Victim client requests attacker-controlled host
  2. Exploit
    Response sends expired Set-Cookie for victim domain
  3. Execution
    CookieJar clears cross-domain cookie without policy check
  4. Impact
    Victim'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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

CPython 0 <3.16.0

Affected Packages

euvd cpython fix: 3.16.0

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

Vendor (PSF) PRIMARY 6.3 MEDIUM
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
vuln.today AI 3.7 LOW

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).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (PSF).

CVSS VectorVendor: PSF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Ubiquitous
CPython standard library, present in nearly all Python deployments
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2026-17084 MEDIUM POC
6.0 Aug 18

Integrity bypass in CPython's stringprep module causes divergent domain name normalization when processing international

CVE-2026-115557 CRITICAL
9.4 Oct 24

CPython's ssl module validates TLS certificate chains that anchor to known-compromised eMudhra CA certificates, so anyon

CVE-2026-19445 CRITICAL
9.2 Sep 30

A use-after-free in CPython's ssl module lets a remote, unauthenticated TLS client crash a Python TLS server process - o

CVE-2026-6100 CRITICAL
9.1 Apr 13

CPython decompression modules (lzma, bz2, gzip) allow memory corruption via use-after-free when decompressor instances a

CVE-2026-3298 HIGH
8.8 Apr 21

Out-of-bounds buffer write in CPython's asyncio.ProactorEventLoop (Windows only) allows remote attackers to trigger memo

CVE-2026-11972 HIGH
8.2 Jun 23

Denial of service in CPython's tarfile module allows remote attackers to trigger an infinite loop by supplying a crafted

CVE-2026-9669 HIGH
8.2 Jun 08

Stack-based buffer overflow in CPython's bz2.BZ2Decompressor allows remote attackers to crash Python applications by sen

CVE-2026-119170 HIGH
8.2 Nov 06

FIPS algorithm enforcement in CPython 3.14.10's hashlib module can fail for hash requests made with usedforsecurity=True

CVE-2026-11940 HIGH
7.8 Jun 23

Path traversal in CPython's tarfile module allows a crafted tar archive to bypass the 'data' and 'tar' extraction filter

CVE-2026-19553 HIGH
7.6 Sep 30

Certificate hostname verification is silently skipped in CPython's TLS stack when an application enables SSLContext.chec

CVE-2026-4786 HIGH
7.0 Apr 13

Command injection in CPython's webbrowser.open() API bypasses previous CVE-2026-4519 mitigation via specially crafted UR

CVE-2026-4519 HIGH
7.0 Mar 20

The webbrowser.open() API in CPython accepts URLs with leading dashes, which certain web browsers interpret as command-l

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy