MODERATE 6.3

CVE-2026-124249

`http.cookiejar` applies expired `Set-Cookie` to cookie store before policy validation

Preliminary: affected artifacts were inferred from the fix commits of the source repository and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.

Description

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
com.chaquo.python » pythonpreliminary
< 3.16.0a2< 4e9d037f1cfc8e29efcb1f67bc668e06ff2b6643< 8eb3d2c1c41ca7ce628554413981c1eb763a1494< ac1d49f4fbb33941475c5aa3cb663ab39d64cb73
3.16.0a2, 4e9d037f1cfc8e29efcb1f67bc668e06ff2b6643, 8eb3d2c1c41ca7ce628554413981c1eb763a1494, ac1d49f4fbb33941475c5aa3cb663ab39d64cb73

Blast radius

1affected artifacts
12affected versions
0dependent artifacts (est.)
0dependent versions

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.