GHSA-c7jm-38gq-h67h: http4k `ServerFilters.DigestAuth` / `DigestAuthProvider` Defaulted To Vulnerability
MODERATEGHSA-c7jm-38gq-h67h is a MODERATE `serverfilters.digestauth` / `digestauthprovider` defaulted to vulnerability (CWE-294: Authentication Bypass by Capture-replay) affecting http4k libraries in the Maven ecosystem. The issue involves `serverfilters.digestauth` / `digestauthprovider` defaulted to an always-true nonce verifier, disabling replay protection in default deployments. Remediation is available by upgrading affected packages to version 6.48.0.0, 5.42.0.0, 4.51.0.0.
GHSA-c7jm-38gq-h67h at a Glance
How to Fix GHSA-c7jm-38gq-h67h
To remediate this vulnerability, upgrade all affected http4k dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.http4k</groupId>
<artifactId>http4k-security-digest</artifactId>
<version>6.48.0.0</version>
</dependency>
<dependency>
<groupId>org.http4k</groupId>
<artifactId>http4k-security-digest</artifactId>
<version>5.42.0.0</version>
</dependency>
<dependency>
<groupId>org.http4k</groupId>
<artifactId>http4k-security-digest</artifactId>
<version>4.51.0.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.http4k
How to Check if You Are Affected
To determine whether your Java application is affected by GHSA-c7jm-38gq-h67h, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.http4k
Analyze the terminal output to locate any version of http4k in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.48.0.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.http4k command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-294: Authentication Bypass by Capture-replay, where a capture-replay flaw exists when the design of the product makes it possible for a malicious user to sniff network traffic and bypass authentication by replaying it to the server in question to the same effect as the original message (or with minor changes). In http4k, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-c7jm-38gq-h67h Affected http4k Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.http4k:http4k-security-digest
|
Maven |
≥ 6.0.0.0
< 6.48.0.0
|
6.48.0.0
|
|
org.http4k:http4k-security-digest
|
Maven |
≥ 5.0.0.0
< 5.42.0.0
|
5.42.0.0
|
|
org.http4k:http4k-security-digest
|
Maven |
< 4.51.0.0
|
4.51.0.0
|
References
Frequently Asked Questions
What is GHSA-c7jm-38gq-h67h?
Which http4k versions are affected?
What version fixes GHSA-c7jm-38gq-h67h?
Is http4k-security-digest affected?
What CWE is associated with GHSA-c7jm-38gq-h67h?
How can I check Maven dependencies for GHSA-c7jm-38gq-h67h?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c7jm-38gq-h67h",
"modified" : "2026-06-19T21:16:09Z",
"published" : "2026-06-19T21:16:09Z",
"aliases" : [ ],
"summary" : "http4k: `ServerFilters.DigestAuth` / `DigestAuthProvider` defaulted to an always-true nonce verifier, disabling replay protection in default deployments",
"details" : "### Impact\n\n`ServerFilters.DigestAuth` and the underlying `DigestAuthProvider` both defaulted their `nonceVerifier` parameter to `{ true }` — i.e. every nonce was accepted regardless of value, age, or prior use. Any deployment using the default configuration had **no replay protection** on Digest authentication; a captured `Authorization: Digest …` response could be replayed indefinitely against the same protected resource.\n\nThe nonce-verification mechanism in Digest auth is the primary anti-replay control — without it, Digest reduces to a credential bound only to a stale nonce string.\n\n**Who is affected:** any application using `ServerFilters.DigestAuth` or `DigestAuthProvider` with the default `nonceVerifier`. The broken default has been present since `DigestAuthProvider` was introduced (2021). Exploitation requires the attacker to first capture a valid Digest response (network observation, log access, etc.) — non-trivial in modern TLS deployments but not impossible. Anyone running Digest auth with default config should treat upgrade as urgent.\n\n### Patches\n\n| Line | Fixed in | Edition |\n|------|----------|---------|\n| v6.x (Community) | **6.48.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 (`[Break]`) removes the default value for `nonceVerifier` from both `ServerFilters.DigestAuth` and `DigestAuthProvider`. Callers must now supply a real verifier explicitly — the broken default cannot be silently inherited.\n\n### Workarounds\n\nFor deployments that cannot upgrade immediately: explicitly supply a `nonceVerifier` that tracks issued nonces, enforces a TTL, and rejects re-use. Do not rely on the default.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.http4k:http4k-security-digest"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0.0"
}, {
"fixed" : "6.48.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.http4k:http4k-security-digest"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0.0"
}, {
"fixed" : "5.42.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.http4k:http4k-security-digest"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.51.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/http4k/http4k/security/advisories/GHSA-c7jm-38gq-h67h"
}, {
"type" : "WEB",
"url" : "https://github.com/http4k/http4k/commit/4f904b4692"
}, {
"type" : "WEB",
"url" : "https://github.com/http4k/http4k/commit/8a52b615b1"
}, {
"type" : "WEB",
"url" : "https://datatracker.ietf.org/doc/html/rfc7616#section-3.4"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/http4k/http4k"
}, {
"type" : "WEB",
"url" : "https://github.com/http4k/http4k/releases/tag/6.48.0.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-294" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-19T21:16:09Z",
"nvd_published_at" : null
}
}