The CookieJar client middleware decides whether to attach a cookie to an outgoing request using an unanchored substring test on the host and path, instead of the domain match specified by RFC6265 5.1.3. A cookie stored for example.com is therefore sent to any host whose name merely contains example.com (e.g. evilexample.com), leaking potentially sensitive cookies to an attacker-chosen host.
Disclosure of session and authentication cookies to an attacker-controlled host, enabling session hijack of the application's outbound calls.
CookieJar client middleware.CookieJar with clients that fetch attacker-influenced URLsCookieJar per trusted origin.{
"cwe_ids": [
"CWE-1275",
"CWE-565"
],
"github_reviewed": true,
"github_reviewed_at": "2026-09-15T20:00:54Z",
"nvd_published_at": null,
"severity": "MODERATE"
}