CVE-2026-69208
Http4s: DigestAuth nonce map grows unbounded
Description
The DigestAuth server middleware's stale-nonce cleanup uses an inverted comparison: it removes fresh nonces and stops at the first stale one. Because a new nonce is created for every unauthenticated challenge, an attacker can drive the nonce map to grow without bound until the JVM runs out of heap.
Impact
Unauthenticated remote denial of service (gradual heap exhaustion / OOM) against any service using DigestAuth. The leak is persistent.
Preconditions
- Application uses
DigestAuthon at least one route.
Workarounds
- Front the DigestAuth protected routes with a rate limiter to slow the leak.
- Restart periodically.
Fixes
- The eviction logic is corrected.
- A max cache size of 1000000 is imposed to protected against a burst between evictions. This limit is not yet configurable.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.http4s » http4s-ember-server_2.12 | < 0.23.35 | 0.23.35 |
| org.http4s » http4s-ember-server_2.13 | < 0.23.35>= 1.0.0-M1, < 1.0.0-M47 | 0.23.35, 1.0.0-M47 |
| org.http4s » http4s-ember-server_3 | < 0.23.35>= 1.0.0-M1, < 1.0.0-M47 | 0.23.35, 1.0.0-M47 |
Blast radius
75% of the dependent artifacts (101) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1,090 |
| 2 hops | 1,412 |
| 3 hops | 76 |
| 4 hops | 49 |
Most used dependents
- io.chrisdavenport » http4s-grpc23 usages
- io.github.pityka » tasks-core17 usages
- io.chrisdavenport » http4s-grpc-google-common-protos17 usages
- com.disneystreaming.smithy4s » smithy4s-tests4 usages
- de.killaitis » peloton-core4 usages
- pl.iterators » http4s-stir4 usages
- org.typelevel » sbt-typelevel-site_2.12_1.03 usages
- io.chrisdavenport » http4s-grpc-google-iam-v13 usages
- com.avast » sst-http4s-server-ember3 usages
- org.typelevel » laika-sbt_2.12_1.03 usages
- io.github.quafadas » sjsls2 usages
- org.creativescala » krop-core2 usages
- com.avast » sst-http4s-server-ember-pureconfig2 usages
- org.typelevel » laika-preview2 usages
- com.permutive » fs2-pubsub2 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-fm4g-76c9-7w69 | github.com |
| Web | http4s/http4s commit 8cfeda8 | github.com |
| Web | http4s/http4s release v0.23.35 | github.com |
| Web | http4s/http4s release v1.0.0-M47 | github.com |
