ADVISORIES

GitHub Advisory Database

GHSA-vxxm-wwqh-mh47

http4k: `DigestAuthProvider.verify` ignored configured algorithm and did not bind to request URI

Moderate CVE-2026-54147

Details

Impact

An issue in DigestAuthProvider.verify:

Algorithm silently forced to MD5. The configured algorithm parameter was ignored — every verification used MD5 regardless of configuration. Deployments believing they were running SHA-256 Digest auth were silently inheriting MD5's collision weaknesses, including documented attack paths against Digest schemes that rely on the hash being collision-resistant.

Who is affected: any application using http4k-security-digest for HTTP Digest authentication. The bug has been present since DigestAuthProvider was introduced (commit 8a52b615b1, 2021).

Patches

| Line | Fixed in | Edition | |------|----------|---------| | v6.x (Community) | 6.50.0.0 | Community | | v5.x (LTS) | 5.42.0.0 | Enterprise — contact [[email protected]](mailto:[email protected]) (if Digest auth is present in your v5.x line) | | v4.x (LTS) | 4.51.0.0 | Enterprise — contact [[email protected]](mailto:[email protected]) (if Digest auth is present in your v4.x line) |

The fix:

  • Hashes with the configured algorithm instead of hardcoded MD5.

Workarounds

For deployments that cannot upgrade immediately:

  • Algorithm gap: do not rely on algorithm configuration; assume MD5 is in use and treat the Digest credentials as low-trust.

References

Affected packages

EcosystemPackageAffected versions
Mavenorg.http4k:http4k-security-digest
From 6.0.0.0 before 6.50.0.0 (fixed in 6.50.0.0)
Mavenorg.http4k:http4k-security-digest
From 5.0.0.0 before 5.42.0.0 (fixed in 5.42.0.0)
Mavenorg.http4k:http4k-security-digest
All versions up to and including 4.48.2.0

References