CVE-2026-69201: Http4s: ResourceService and Webjar Service path escape via percent-encoded separators
The static content handlers ResourceService and WebjarService URL decode each path segment and then reject only segments that are exactly "", ".", or "..". A percent-encoded separator (%2F) lets an attacker smuggle a ../ segment past that filter and escape the configured base, reading resources that should not be public. On Windows, a similar attack exists with (%5C).
Published Sep 15, 2026
Affected packages
org.http4s:http4s-server_2.12
- Ecosystem
- Maven
- Affected
- <= 0.23.34
- Fixed in
- 0.23.35
- Check
mvn dependency:tree -Dincludes=org.http4s:http4s-server_2.12
org.http4s:http4s-server_2.13
- Ecosystem
- Maven
- Affected
- <= 0.23.34
- Fixed in
- 0.23.35
- Check
mvn dependency:tree -Dincludes=org.http4s:http4s-server_2.13
org.http4s:http4s-server_3
- Ecosystem
- Maven
- Affected
- <= 0.23.34
- Fixed in
- 0.23.35
- Check
mvn dependency:tree -Dincludes=org.http4s:http4s-server_3
org.http4s:http4s-server_3
- Ecosystem
- Maven
- Affected
- >= 1.0.0-M1, <= 1.0.0-M46
- Fixed in
- 1.0.0-M47
- Check
mvn dependency:tree -Dincludes=org.http4s:http4s-server_3
org.http4s:http4s-server_2.13
- Ecosystem
- Maven
- Affected
- >= 1.0.0-M1, <= 1.0.0-M46
- Fixed in
- 1.0.0-M47
- Check
mvn dependency:tree -Dincludes=org.http4s:http4s-server_2.13
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
The static content handlers ResourceService and WebjarService URL decode each path segment and then reject only segments that are exactly "", ".", or "..". A percent-encoded separator (%2F) lets an attacker smuggle a ../ segment past that filter and escape the configured base, reading resources that should not be public.
On Windows, a similar attack exists with (%5C).
Impact
Disclosure of classpath or webjar resources outside the configured base.
Preconditions
- Application uses
ResourceService(with a non-root base path) orWebjarService - At least one classpath entry is served from a directory (e.g.
sbt run, exploded .war) - Backend forwards
%2F/%5Cwithout normalizing (e.g., Ember, Blaze)
Fixes
The patch rejects any decoded path segment containing / (%2F) or \ (%5C) with a 400 Bad Request in ResourceService and WebjarService.
FileService was not exploitable, but the same guards are applied for consistency and to remove its reliance on path normalization.
Workarounds
- Deploy as a fat jar, with no filesystem directories on the classpath.
- Front the service with a proxy that rejects/normalizes
%2Fand%5Cin the request path.
Credited to Lasering, rossabaker, samspills.
References
- https://github.com/http4s/http4s/security/advisories/GHSA-crq5-92j2-j7wv
- https://github.com/http4s/http4s/commit/bcd99cdc1342ef58a0f132acb814af06a668a8d3
- https://github.com/http4s/http4s/releases/tag/v0.23.35
- https://github.com/http4s/http4s/releases/tag/v1.0.0-M47
- https://github.com/advisories/GHSA-crq5-92j2-j7wv
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
