CVE-2026-69208: Http4s: DigestAuth nonce map grows unbounded
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.
Published Sep 15, 2026
Affected packages
org.http4s:http4s-ember-server_2.12
- Ecosystem
- Maven
- Affected
- <= 0.23.34
- Fixed in
- 0.23.35
- Check
mvn dependency:tree -Dincludes=org.http4s:http4s-ember-server_2.12
org.http4s:http4s-ember-server_2.13
- Ecosystem
- Maven
- Affected
- <= 0.23.34
- Fixed in
- 0.23.35
- Check
mvn dependency:tree -Dincludes=org.http4s:http4s-ember-server_2.13
org.http4s:http4s-ember-server_3
- Ecosystem
- Maven
- Affected
- <= 0.23.34
- Fixed in
- 0.23.35
- Check
mvn dependency:tree -Dincludes=org.http4s:http4s-ember-server_3
org.http4s:http4s-ember-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-ember-server_2.13
org.http4s:http4s-ember-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-ember-server_3
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to rossabaker, samspills, morgen-peschke.
References
- https://github.com/http4s/http4s/security/advisories/GHSA-fm4g-76c9-7w69
- https://github.com/http4s/http4s/commit/8cfeda8472954d631dfbe5dc026463a27653e482
- 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-fm4g-76c9-7w69
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
