CVE-2026-69201
Http4s: ResourceService and Webjar Service path escape via percent-encoded separators
Description
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.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.http4s » http4s-server_2.12 | < 0.23.35 | 0.23.35 |
| org.http4s » http4s-server_2.13 | < 0.23.35>= 1.0.0-M1, < 1.0.0-M47 | 0.23.35, 1.0.0-M47 |
| org.http4s » http4s-server_3 | < 0.23.35>= 1.0.0-M1, < 1.0.0-M47 | 0.23.35, 1.0.0-M47 |
Blast radius
82% of the dependent artifacts (478) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 4,397 |
| 2 hops | 7,372 |
| 3 hops | 3,956 |
| 4 hops | 339 |
| 5 hops | 170 |
| 6 hops | 9 |
Most used dependents
- org.http4s » http4s-blaze-client252 usages
- org.http4s » http4s-client252 usages
- org.http4s » http4s-blaze-server239 usages
- org.http4s » http4s-ember-client144 usages
- org.http4s » http4s-ember-server107 usages
- net.shrine » shrine-util39 usages
- com.softwaremill.sttp.tapir » tapir-http4s-server38 usages
- net.shrine » shrine-protocol32 usages
- org.http4s » http4s-servlet25 usages
- io.chrisdavenport » http4s-grpc23 usages
- org.http4s » http4s-async-http-client20 usages
- io.github.pityka » tasks-core17 usages
- io.chrisdavenport » http4s-grpc-google-common-protos17 usages
- net.shrine » shrine-qep16 usages
- net.shrine » shrine-auth15 usages
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.
References
| Package | http4s/http4s | github.com |
| Web | http4s/http4s advisory GHSA-crq5-92j2-j7wv | github.com |
| Web | http4s/http4s commit bcd99cd | github.com |
| Web | http4s/http4s release v0.23.35 | github.com |
| Web | http4s/http4s release v1.0.0-M47 | github.com |
