MODERATE 5.9

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)

ArtifactAffected versionsFixed 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

2affected artifacts
46affected versions
15dependent artifacts (est.)
201dependent versions

13% of the dependent artifacts (2) still pull an affected version in their latest release.

DepthDependent versions
Direct
56
2 hops
76
3 hops
69

Most used dependents

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