Origin Validation Error Affecting undici package, versions >=7.30.1 <7.30.4>=8.12.2 <8.14.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

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-23775810
  • published5 Dec 2026
  • disclosed5 Dec 2026
  • creditTravis Baldwin, 0xE2E

Introduced: 5 Dec 2026

NewCVE-2026-133890  (opens in a new tab)
CWE-346  (opens in a new tab)

How to fix?

Upgrade undici to version 7.30.4, 8.14.1 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 a protocol-relative URL misparse in buildRequestUrl (previously new URL(path, origin)) inside the redirect handler. When recording each hop of a redirect chain, a path beginning with // is misread as a protocol-relative URL, causing a hop to an attacker-controlled origin to be recorded as a hop to the trusted origin. An attacker who controls the target of a redirect from a trusted URL - for example through an open redirect - can have their response cached under the trusted URL and served to subsequent callers from the shared cache without either origin being contacted. The same mis-recorded history also allows a cross-origin 304 response to revalidate the trusted cache entry, and with SqliteCacheStore the poisoned entry survives process restarts.

Note: This is only exploitable when a shared MemoryCacheStore or SqliteCacheStore and the composition compose(redirect(), cache()) are used, and the trusted origin redirects to a URL the attacker controls.

Workaround

Use per-origin dispatchers and cache stores, or disable shared caching on redirect-capable requests.

CVSS Base Scores

version 4.0
version 3.1