{"id":"CVE-2026-54147","aliases":["CVE-2026-54147","GHSA-vxxm-wwqh-mh47"],"related":[],"kind":"vulnerability","state":"published","title":"http4k: `DigestAuthProvider.verify` ignored configured algorithm and did not bind to request URI","summary":"http4k is a functional toolkit for Kotlin HTTP applications. Prior to 4.51.0.0, 5.42.0.0, and 6.50.0.0, DigestAuthProvider.verify in http4k-security-digest ignores its configured algorithm parameter and verifies every Digest response with hardcoded MD5. Deployments configured for SHA-256 therefore receive weaker MD5-based verification, exposing Digest authentication to collision-related attack paths that depend on the hash function's collision resistance. This issue is fixed in versions 4.51.0.0, 5.42.0.0, and 6.50.0.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"http4k is a functional toolkit for Kotlin HTTP applications. Prior to 4.51.0.0, 5.42.0.0, and 6.50.0.0, DigestAuthProvider.verify in http4k-security-digest ignores its configured algorithm parameter and verifies every Digest response with hardcoded MD5. Deployments configured for SHA-256 therefore receive weaker MD5-based verification, exposing Digest authentication to collision-related attack paths that depend on the hash function's collision resistance. This issue is fixed in versions 4.51.0.0, 5.42.0.0, and 6.50.0.0.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAn issue in `DigestAuthProvider.verify`:\n\n **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.\n\n**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).\n\n### Patches\n\n| Line | Fixed in | Edition |\n|------|----------|---------|\n| v6.x (Community) | **6.50.0.0** | Community |\n| v5.x (LTS) | **5.42.0.0** | Enterprise — contact [enterprise@http4k.org](mailto:enterprise@http4k.org) (if Digest auth is present in your v5.x line) |\n| v4.x (LTS) | **4.51.0.0** | Enterprise — contact [enterprise@http4k.org](mailto:enterprise@http4k.org) (if Digest auth is present in your v4.x line) |\n\nThe fix:\n- Hashes with the configured `algorithm` instead of hardcoded MD5.\n\n### Workarounds\n\nFor deployments that cannot upgrade immediately:\n- **Algorithm gap:** do not rely on `algorithm` configuration; assume MD5 is in use and treat the Digest credentials as low-trust.\n\n### References\n\n- Vulnerability first present: [`8a52b615b1`](https://github.com/http4k/http4k/commit/8a52b615b1)\n- Algorithm fix: [`65d23d99fc`](https://github.com/http4k/http4k/commit/65d23d99fc)\n- Fix release: [v6.50.0.0](https://github.com/http4k/http4k/releases/tag/6.50.0.0)\n- Background: [RFC 7616 — HTTP Digest Access Authentication](https://datatracker.ietf.org/doc/html/rfc7616)","format":"markdown","source":"ghsa"}],"published":"2026-08-17T21:56:58.000Z","modified":"2026-09-24T21:25:27.050Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-327"],"affected":[{"ranges":[{"version":"< 4.51.0.0","status":"affected"},{"version":">= 5.0.0.0, < 5.42.0.0","status":"affected"},{"version":">= 6.0.0.0, < 6.50.0.0","status":"affected"}],"vendor":"http4k","product":"http4k","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0.0","status":"affected","fixed":"6.50.0.0"}],"ecosystem":"Maven","package":"org.http4k:http4k-security-digest","purl":"pkg:maven/org.http4k/http4k-security-digest","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0.0","status":"affected","fixed":"5.42.0.0"}],"ecosystem":"Maven","package":"org.http4k:http4k-security-digest","purl":"pkg:maven/org.http4k/http4k-security-digest","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"4.48.2.0"}],"ecosystem":"Maven","package":"org.http4k:http4k-security-digest","purl":"pkg:maven/org.http4k/http4k-security-digest","source":"ghsa"}],"references":[{"url":"https://github.com/http4k/http4k/security/advisories/GHSA-vxxm-wwqh-mh47","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/http4k/http4k/commit/65d23d99fc5afbe34f29d8f61d0a003fbebb381c","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/http4k/http4k/releases/tag/6.50.0.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/http4k/http4k/commit/65d23d99fc","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/http4k/http4k","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-18T17:27:37.221Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54147","url":"https://www.cve.org/CVERecord?id=CVE-2026-54147","licence":"CVE Terms of Use","modified":"2026-09-18T17:28:07.389Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vxxm-wwqh-mh47","url":"https://github.com/advisories/GHSA-vxxm-wwqh-mh47","licence":"CC-BY-4.0","modified":"2026-08-17T22:11:01.448Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54147","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54147","licence":"Public domain","modified":"2026-09-24T21:25:27.050Z"}],"updatedAt":"2026-11-25T22:59:39.613Z","epss":{"score":0.00197,"percentile":0.0987,"date":"2026-12-01T12:00:22.000Z"}}