Improper Validation of Integrity Check Value Affecting undici package, versions >=7.15.0 <7.30.2>=8.0.0 <8.12.4


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (3rd 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-22370261
  • published8 Nov 2026
  • disclosed6 Nov 2026
  • creditalanprado1, Behruz Chilmatov

Introduced: 6 Nov 2026

NewCVE-2026-120423  (opens in a new tab)
CWE-354  (opens in a new tab)

How to fix?

Upgrade undici to version 7.30.2, 8.12.4 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 Validation of Integrity Check Value via the fetch() function's Subresource Integrity verification logic, which splits the integrity string on a single space rather than on all ASCII whitespace characters. An integrity value whose digest is preceded by a horizontal tab or other non-space ASCII whitespace (e.g. \tsha256-...) is parsed as a single unrecognized token and skipped. When no recognized algorithm remains, the integrity list is treated as empty and the response is accepted unconditionally, allowing a server that returns a body different from the pinned digest to pass the check. An attacker who controls the response body can deliver arbitrary bytes to an application that uses whitespace-surrounded SRI metadata, with no integrity error raised.

Workaround

Supply SRI integrity metadata without surrounding whitespace, using a single space to separate multiple digests.

CVSS Base Scores

version 4.0
version 3.1