{"id":"CVE-2026-69215","aliases":["CVE-2026-69215","GHSA-grh8-3p95-f9rr"],"related":[],"kind":"vulnerability","state":"published","title":"Http4s: CookieJar middleware matches by substring, leaking cookies cross-origin","summary":"Http4s is a Scala interface for HTTP services. Prior to 0.23.35 and 1.0.0-M47, The CookieJar client middleware uses unanchored substring checks instead of RFC 6265 domain and path matching when deciding whether to attach a stored cookie. A cookie for example.com can consequently be sent to an attacker-controlled hostname such as evilexample.com when an application using the same jar makes an attacker-influenced outbound request. This exposes session or authentication cookies and can enable hijacking of the application’s outbound sessions. This issue is fixed in versions 0.23.35 and 1.0.0-M47.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Http4s is a Scala interface for HTTP services. Prior to 0.23.35 and 1.0.0-M47, The CookieJar client middleware uses unanchored substring checks instead of RFC 6265 domain and path matching when deciding whether to attach a stored cookie. A cookie for example.com can consequently be sent to an attacker-controlled hostname such as evilexample.com when an application using the same jar makes an attacker-influenced outbound request. This exposes session or authentication cookies and can enable hijacking of the application’s outbound sessions. This issue is fixed in versions 0.23.35 and 1.0.0-M47.","source":"cvelist"},{"lang":"en","text":"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.\n\n## Impact\n\nDisclosure of session and authentication cookies to an attacker-controlled host, enabling session hijack of the application's outbound calls.\n\n## Preconditions\n\n- Application uses the `CookieJar` client middleware.\n- Application can be induced to make an outbound request to a host controlled by the attacker, where the hostname contains the targeted domain as a substring.\n\n## Workarounds\n\n- Do not use the `CookieJar` with clients that fetch attacker-influenced URLs\n- Apply a separate `CookieJar` per trusted origin.","format":"markdown","source":"ghsa"}],"published":"2026-09-15T19:17:12.429Z","modified":"2026-09-16T20:39:16.610Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-565","CWE-1275"],"affected":[{"ranges":[{"version":"< 0.23.35","status":"affected"},{"version":">= 1.0.0-M1, < 1.0.0-M47","status":"affected"}],"vendor":"http4s","product":"http4s","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.23.35"}],"ecosystem":"Maven","package":"org.http4s:http4s-client_2.12","purl":"pkg:maven/org.http4s/http4s-client_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.23.35"}],"ecosystem":"Maven","package":"org.http4s:http4s-client_2.13","purl":"pkg:maven/org.http4s/http4s-client_2.13","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.23.35"}],"ecosystem":"Maven","package":"org.http4s:http4s-client_3","purl":"pkg:maven/org.http4s/http4s-client_3","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.0.0-M1","status":"affected","fixed":"1.0.0-M47"}],"ecosystem":"Maven","package":"org.http4s:http4s-client_2.13","purl":"pkg:maven/org.http4s/http4s-client_2.13","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.0.0-M1","status":"affected","fixed":"1.0.0-M47"}],"ecosystem":"Maven","package":"org.http4s:http4s-client_3","purl":"pkg:maven/org.http4s/http4s-client_3","source":"ghsa"}],"references":[{"url":"https://github.com/http4s/http4s/security/advisories/GHSA-grh8-3p95-f9rr","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/http4s/http4s/commit/c0a37f38d5ee2a568ba57bd9da62f8d79b8b1fcc","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/http4s/http4s/releases/tag/v0.23.35","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/http4s/http4s/releases/tag/v1.0.0-M47","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/http4s/http4s","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-16T18:18:31.142Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-69215","url":"https://www.cve.org/CVERecord?id=CVE-2026-69215","licence":"CVE Terms of Use","modified":"2026-09-16T18:36:57.350Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-grh8-3p95-f9rr","url":"https://github.com/advisories/GHSA-grh8-3p95-f9rr","licence":"CC-BY-4.0","modified":"2026-09-15T20:15:05.150Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-69215","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-69215","licence":"Public domain","modified":"2026-09-16T20:39:16.610Z"}],"updatedAt":"2026-11-25T22:59:38.674Z","epss":{"score":0.00426,"percentile":0.3877,"date":"2026-12-01T12:00:22.000Z"}}