Origin Validation Error Affecting undici package, versions >=7.0.0 <7.30.1>=8.0.0 <8.12.2


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (4th 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-21181009
  • published18 Oct 2026
  • disclosed15 Oct 2026
  • creditKushal Khemka, Mayank Jangid, bengsky13

Introduced: 15 Oct 2026

NewCVE-2026-109829  (opens in a new tab)
CWE-346  (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 Origin Validation Error via cross-origin redirect handling in CacheHandler.onResponseStart, where a redirect to a different origin can cause the final response to be stored under the original (trusted) origin's cache key. An attacker who controls a redirect target can poison the shared cache by serving a response that gets keyed against a URL the application trusts, enabling subsequent cache-served responses to deliver attacker-controlled content. Additionally, intermediate redirect hops carrying restrictive Cache-Control directives (such as no-store or private) are not honored, allowing those hops to be laundered into a cacheable entry under the original key.

Note: This is only exploitable when an originless Agent, a shared MemoryCacheStore or SqliteCacheStore, and the composition compose(redirect(), cache()) are all used.

CVSS Base Scores

version 4.0
version 3.1