Improper Handling of Case Sensitivity Affecting undici package, versions >=7.15.0 <7.30.1>=8.0.0 <8.12.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.25% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-UNDICI-21181011
  • published18 Oct 2026
  • disclosed15 Oct 2026
  • creditKushal Khemka, Mayank Jangid

Introduced: 15 Oct 2026

NewCVE-2026-109841  (opens in a new tab)
CWE-178  (opens in a new tab)

How to fix?

Upgrade undici to version 7.30.1, 8.12.2 or higher.

Overview

undici is an An HTTP/1.1 client, written from scratch for Node.js

Affected versions of this package are vulnerable to Improper Handling of Case Sensitivity via the fetch() implementation's Subresource Integrity (SRI) verification logic, which matches the algorithm token against a lowercase-only set. A valid but non-lowercase token such as SHA256-... or Sha256-... is treated as unknown and skipped, causing undici to treat the integrity list as empty and accept the response unconditionally. An attacker who controls the response body can therefore deliver arbitrary bytes to an application that pinned a valid uppercase or mixed-case SRI token, with no integrity error raised.

Note: This is only exploitable when the application uses uppercase or mixed-case algorithm tokens (e.g., SHA256, Sha384) in its integrity metadata rather than the canonical lowercase forms.

Workaround

Use lowercase algorithm tokens (sha256, sha384, sha512) in all integrity metadata passed to fetch().

CVSS Base Scores

version 4.0
version 3.1