Origin Validation Error Affecting undici package, versions >=7.23.0 <7.28.0>=8.0.0 <8.2.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.36% (28th 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-17372667
  • published18 Jun 2026
  • disclosed17 Jun 2026
  • creditNikita Skovoroda

Introduced: 17 Jun 2026

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

How to fix?

Upgrade undici to version 7.28.0, 8.2.0 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 in the Socks5ProxyAgent. An attacker can intercept or redirect sensitive data, including credentials and request payloads, to unintended origins by exploiting improper verification of origin matching when reusing connection pools. This may also result in responses from incorrect origins being trusted and can lead to silent downgrading of HTTPS requests to HTTP.

Note: This is only exploitable if the application uses Socks5ProxyAgent (directly or via setGlobalDispatcher) and makes requests to more than one origin.

Workaround

This vulnerability can be mitigated by using a separate Socks5ProxyAgent instance per origin or by avoiding the use of Socks5ProxyAgent with multiple origins.

CVSS Base Scores

version 4.0
version 3.1