CVE-2026-69215: Http4s CookieJar Middleware Matches By Substring, Vulnerability
MODERATECVE-2026-69215 is a MODERATE (CVSS 6.8) cookiejar middleware matches by substring, vulnerability (CWE-1275: Sensitive Cookie with Improper SameSite Attribute) affecting Http4s libraries in the Maven ecosystem. The issue involves cookiejar middleware matches by substring, leaking cookies cross-origin. Remediation is available by upgrading affected packages to version 0.23.35, 1.0.0-M47.
CVE-2026-69215 at a Glance
Security Impact
CVSS: 6.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N).
How to Fix CVE-2026-69215
To remediate this vulnerability, upgrade all affected Http4s dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.http4s</groupId>
<artifactId>http4s-client_2.12</artifactId>
<version>0.23.35</version>
</dependency>
<dependency>
<groupId>org.http4s</groupId>
<artifactId>http4s-client_2.13</artifactId>
<version>0.23.35</version>
</dependency>
<dependency>
<groupId>org.http4s</groupId>
<artifactId>http4s-client_3</artifactId>
<version>0.23.35</version>
</dependency>
<dependency>
<groupId>org.http4s</groupId>
<artifactId>http4s-client_2.13</artifactId>
<version>1.0.0-M47</version>
</dependency>
<dependency>
<groupId>org.http4s</groupId>
<artifactId>http4s-client_3</artifactId>
<version>1.0.0-M47</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.http4s
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-69215, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.http4s
Analyze the terminal output to locate any version of Http4s in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.23.35), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.http4s command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1275: Sensitive Cookie with Improper SameSite Attribute, where the samesite attribute for sensitive cookies is not set, or an insecure value is used. In Http4s, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-69215 Affected Http4s Versions
5 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.http4s:http4s-client_2.12
|
Maven |
< 0.23.35
|
0.23.35
|
|
org.http4s:http4s-client_2.13
|
Maven |
< 0.23.35
|
0.23.35
|
|
org.http4s:http4s-client_3
|
Maven |
< 0.23.35
|
0.23.35
|
|
org.http4s:http4s-client_2.13
|
Maven |
≥ 1.0.0-M1
< 1.0.0-M47
|
1.0.0-M47
|
|
org.http4s:http4s-client_3
|
Maven |
≥ 1.0.0-M1
< 1.0.0-M47
|
1.0.0-M47
|
References
Frequently Asked Questions
What is CVE-2026-69215?
Which Http4s versions are affected?
What version fixes CVE-2026-69215?
Is http4s-client_2.12 affected?
Is http4s-client_2.13 affected?
What is the CVSS score of CVE-2026-69215?
What CWE is associated with CVE-2026-69215?
How can I check Maven dependencies for CVE-2026-69215?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-grh8-3p95-f9rr",
"modified" : "2026-09-15T20:00:54Z",
"published" : "2026-09-15T20:00:54Z",
"aliases" : [ "CVE-2026-69215" ],
"summary" : "Http4s: CookieJar middleware matches by substring, leaking cookies cross-origin",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.http4s:http4s-client_2.12"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.23.35"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.23.34"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.http4s:http4s-client_2.13"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.23.35"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.23.34"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.http4s:http4s-client_3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.23.35"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.23.34"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.http4s:http4s-client_2.13"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0-M1"
}, {
"fixed" : "1.0.0-M47"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.0.0-M46"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.http4s:http4s-client_3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0-M1"
}, {
"fixed" : "1.0.0-M47"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.0.0-M46"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/http4s/http4s/security/advisories/GHSA-grh8-3p95-f9rr"
}, {
"type" : "WEB",
"url" : "https://github.com/http4s/http4s/commit/c0a37f38d5ee2a568ba57bd9da62f8d79b8b1fcc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/http4s/http4s"
}, {
"type" : "WEB",
"url" : "https://github.com/http4s/http4s/releases/tag/v0.23.35"
}, {
"type" : "WEB",
"url" : "https://github.com/http4s/http4s/releases/tag/v1.0.0-M47"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1275", "CWE-565" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-15T20:00:54Z",
"nvd_published_at" : null
}
}