CVE-2026-109841
undici vulnerable to Subresource Integrity bypass via non-lowercase algorithm tokens
Description
Impact
undici's fetch() verifies Subresource Integrity (SRI) metadata by looking up the algorithm token in a lowercase-only set, but the SRI specification defines a valid token by its ASCII-lowercase form. A correct but non-lowercase token such as SHA256-... or Sha256-... is therefore treated as unknown and skipped. When no recognized algorithm remains, undici treats the integrity list as empty and accepts the response, so a server that returns a body different from the pinned digest passes the check.
An application that pins a response with a valid uppercase or mixed-case SRI token receives attacker-controlled bytes with no integrity error. The attacker needs only to control the response body, not the application's integrity metadata. The issue affects response integrity only. The regression was introduced in undici 7.15.0; releases 7.14.0 and earlier lowercase the token and are not affected.
Patches
Upgrade to 7.30.1 or 8.12.2. undici now normalizes the algorithm token to ASCII lowercase before validating it and before selecting the strongest algorithm, so case variants of SHA-256, SHA-384, and SHA-512 are verified correctly.
Workarounds
Use lowercase algorithm tokens (sha256, sha384, sha512) in integrity metadata.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » undicivia npm undici | >= 7.15.0, < 7.30.1>= 8.0.0, < 8.12.2 | 7.30.1, 8.12.2 |
| org.webjars.npm » undicivia npm undici | >= 7.15.0, < 7.30.1>= 8.0.0, < 8.12.2 | 7.30.1, 8.12.2 |
Blast radius
13% of the dependent artifacts (2) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 56 |
| 2 hops | 76 |
| 3 hops | 69 |
Most used dependents
- org.mvnpm.at.scalar » workspace-store8 usages
- org.mvnpm.at.scalar » openapi-parser7 usages
- org.mvnpm.at.scalar » json-magic7 usages
- org.mvnpm.at.scalar » oas-utils5 usages
- org.mvnpm » miniflare2 usages
- org.mvnpm.at.scalar » api-client2 usages
- org.mvnpm.at.scalar » blocks2 usages
- org.mvnpm.at.scalar » sidebar2 usages
- org.mvnpm.at.scalar » openapi-to-markdown2 usages
- org.mvnpm » wrangler1 usages
- org.mvnpm.at.scalar » agent-chat1 usages
- org.mvnpm » guarded-fetch1 usages
- org.mvnpm.at.earendil-works » pi-coding-agent0 usages
- org.mvnpm.at.scalar » api-reference0 usages
- org.mvnpm » just-bash0 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.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2026-109841 | nvd.nist.gov |
| Package | nodejs/undici | github.com |
| Web | nodejs/undici advisory GHSA-f72v-6w45-q472 | github.com |
| Web | nodejs/undici commit 18bc8a1 | github.com |
| Web | nodejs/undici commit 4f7ef68 | github.com |
| Web | security-advisories.html | cna.openjsf.org |
| Web | nodejs/undici release v7.30.1 | github.com |
| Web | nodejs/undici release v8.12.2 | github.com |
