Skip to main content

undici EUVDEUVD-2026-37760

| CVE-2026-6734 HIGH
Origin Validation Error (CWE-346)
2026-06-17 openjs GHSA-hm92-r4w5-c3mj
8.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control or operate the first SOCKS5 pool origin
  2. Delivery
    App establishes pool to origin A
  3. Exploit
    App requests origin B credentials
  4. Execution
    undici reuses pool to wrong origin
  5. Impact
    Credentials/data delivered to attacker, HTTPS downgraded

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
Exploitation Conditions

Exploitation requires that the target Node.js application (1) uses undici's Socks5ProxyAgent, either directly or installed globally via setGlobalDispatcher, AND (2) issues requests to two or more distinct origins through that agent during its lifetime, on a vulnerable version (7.23.0-7.27.x or 8.0.0-8.1.0). The leak is automatic once a second origin is requested after the pool is established by the first; the attacker benefits by controlling, operating, or observing the first origin to which the pool binds. Limiting factors: this is a non-default configuration (SOCKS5 proxying is opt-in and the feature only exists from 7.23.0 onward), single-origin SOCKS5 usage is unaffected, and no special authentication on the victim is needed but the attacker must be positioned at the first-pooled origin - which is why SSVC rates it non-automatable and EPSS is very low despite the high CVSS.

Impact

The signals are deliberately mixed and should be read together rather than off the headline CVSS 8.8. The vendor vector (AV:N/AC:L/PR:L/UI:N/C:H/I:H/A:H) drives the high score, but real-world risk is gated by a strong precondition that CVSS underweights: the victim application must use Socks5ProxyAgent AND route requests to multiple origins - a comparatively rare deployment pattern. Corroborating this, EPSS is 0.15% (4th percentile), SSVC marks Exploitation 'none' and Automatable 'no', and there is no KEV listing and no public exploit. SSVC does rate Technical Impact as 'total', consistent with full credential/data leakage and wrong-origin trust. The AC:L rating is debatable - exploitation depends on connection ordering and a non-default proxy configuration, which argues for higher complexity. Net assessment: a genuine confidentiality/integrity flaw for the specific population that uses SOCKS5 proxying across origins, but not a broad, automatable, or actively-exploited emergency for the general undici install base. Patch promptly where SOCKS5 proxying is in use; treat as routine dependency hygiene elsewhere.

Exploit ScenarioDerived

An application configures a global Socks5ProxyAgent and first makes an authenticated API call to api.internal.example (origin A), establishing the shared pool; it then attempts a request carrying a bearer token to billing.partner.example (origin B), but undici dispatches it through the pool still connected to origin A, delivering origin B's credentials to an attacker controlling or monitoring origin A. No public exploit code exists, though the patch PR includes a test proving requests to a second origin reach the first server instead; the AV:N/low-interaction nature means the leak happens automatically once the multi-origin pattern occurs.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – Jun 27, 2026

Cross-origin request misrouting in undici's Socks5ProxyAgent (introduced in 7.23.0, affecting all releases through 8.1.0) causes the library to reuse a single SOCKS5 connection pool bound to the first-seen origin for every subsequent origin, so credentials and request bodies destined for origin B are silently sent to and trusted from origin A, and HTTPS targets may be downgraded to HTTP. Any Node.js application using Socks5ProxyAgent (directly or via setGlobalDispatcher) that contacts more than one origin is exposed. No public exploit identified at time of analysis; CISA SSVC records exploitation as none and EPSS is very low (0.15%, 4th percentile), but the GHSA advisory ships a regression test demonstrating the misrouting.

Earlier versions of this analysis (2)
v2 Jun 27, 2026 - 23:58 cvss changed CVSS 8.8

Cross-origin request misrouting in the Node.js undici HTTP client (versions 7.23.0 through 7.27.x and 8.0.0 through 8.1.0) occurs when Socks5ProxyAgent reuses one connection pool bound to the first contacted origin for all subsequent origins. Applications proxying requests to more than one origin can leak credentials and request bodies intended for origin B to origin A, trust responses from the wrong host, and silently downgrade HTTPS to HTTP. There is no public exploit identified at time of analysis, EPSS risk is low (0.15%, 4th percentile), and CISA SSVC marks exploitation status as none, but technical impact is rated total.

v1 Jun 17, 2026 - 18:02 CVSS 7.5

Cross-origin request misrouting in undici (Node.js HTTP client) versions 7.23.0 through 8.1.0 occurs when Socks5ProxyAgent shares a single connection pool across origins without validating the pool's origin against the requested destination. All requests get dispatched through the connection bound to the first origin, causing credentials and request bodies destined for origin B to be sent to origin A, responses from the wrong origin to be trusted, and HTTPS requests to be silently downgraded to HTTP. No public exploit identified at time of analysis, and the issue is not listed in CISA KEV.

RemediationAI

Vendor-released patch: undici 7.28.0 (for the 7.x line) or 8.2.0 (for the 8.x line); upgrade the dependency to one of these via package manager and rebuild, ensuring transitive copies are also bumped (note the inline description's '7.26.0' is superseded by the GHSA advisory and package metadata, which state the 7.x fix is 7.28.0 - use 7.28.0). The fix is implemented in PR https://github.com/nodejs/undici/pull/5041. If you cannot upgrade immediately, the vendor-supported workarounds are to instantiate a separate Socks5ProxyAgent instance per origin (each agent then only ever sees one origin, sidestepping the shared-pool bug) or to stop using Socks5ProxyAgent for any code path that talks to more than one origin; the trade-off is added connection-management overhead and the need to audit every call site that uses setGlobalDispatcher, since a global dispatcher centralizes all origins through one vulnerable agent. Refer to the GHSA advisory (https://github.com/nodejs/undici/security/advisories/GHSA-hm92-r4w5-c3mj) for confirmation.

Affected VersionsENISA

undici 8.0.0 <8.2.0
undici 7.23.0 <7.26.0

Affected Packages

npm undici fix: 7.26.0, 7.28.0, 8.2.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

undici is the high-performance HTTP/1.1 client that underpins Node.js's global fetch and is consumed by a large share of the Node ecosystem. The defect is in lib/dispatcher/socks5-proxy-agent.js: the agent cached a single Pool in a kPool symbol keyed to nothing, so the first request through the SOCKS5 tunnel established the pool's origin and all later requests reused that same TCP/TLS connection regardless of their intended host. This is a textbook CWE-346 (Origin Validation Error) - the dispatcher never compared the requested origin against the pool's connected origin. The fix (PR #5041) replaces kPool with a kPools Map keyed by String(origin), creating and caching one Pool per distinct origin. The affected CPE is cpe:2.3:a:undici:undici:*, scoped to the SOCKS5 proxy code path added in PR #4385.

Know when Undici gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (openjs) PRIMARY HIGH
NVD 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.4 HIGH

Requires a non-default multi-origin SOCKS5 configuration and dependent connection ordering (AC:H); attacker needs no victim privileges (PR:N); confidentiality and wrong-origin trust give C:H/I:H, with no real availability loss (A:N).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 7.5 HIGH

Primary rating from Vendor (openjs).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Analysis Updated
Jun 27, 2026 - 23:58 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 27, 2026 - 23:58 vuln.today
v2 - CVSS changed
CVSS changed
Jun 27, 2026 - 23:52 NVD
7.5 (HIGH) 8.8 (HIGH)
Patch available
Jun 19, 2026 - 16:01 EUVD

DescriptionNVD

Impact: When using Socks5ProxyAgent, undici reuses a single connection pool across different origins without verifying that the pool's origin matches the requested origin. All requests are dispatched through the pool connected to the first origin, regardless of the intended destination.

This causes cross-origin request routing: credentials and request data intended for origin B are sent to origin A, responses from the wrong origin are trusted, and HTTPS requests may be silently downgraded to HTTP.

Impacted users are applications that use Socks5ProxyAgent (directly or via setGlobalDispatcher) and make requests to more than one origin.

This was introduced in undici 7.23.0 via PR #4385 and affects all versions through 8.1.0.

Patches: Upgrade to undici v7.26.0 or v8.2.0.

Workarounds: Use a separate Socks5ProxyAgent instance per origin, or avoid using Socks5ProxyAgent with multiple origins.

Executive ViewAI

Why It Matters

undici (Node.js HTTP client library) versions 7.23.0-8.1.0 contain a cross-origin request misrouting flaw in Socks5ProxyAgent that silently routes credentials and request bodies intended for one origin to another, potentially downgrading HTTPS connections to HTTP. Any Node.js application using this library to communicate with multiple endpoints is at risk of credential exposure and man-in-the-middle attacks.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
High
undici is Node.js's core HTTP client, though the affected SOCKS5 feature is rarely used
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Undici

View all
CVE-2022-35949 CRITICAL POC
9.8 Aug 12

undici is an HTTP/1.1 client, written from scratch for Node.js.`undici` is vulnerable to SSRF (Server-side Request Forge

CVE-2026-12151 HIGH POC
7.5 Jun 17

Memory exhaustion denial of service in the undici WebSocket client (versions 6.17.0 and later) allows a malicious or com

CVE-2026-14643 HIGH POC
7.5 Jul 29

Cross-user information disclosure in undici's cache interceptor allows authenticated users' responses to be served from

CVE-2026-16729 MEDIUM POC
6.5 Jul 29

Cookie attribute injection in undici's setCookie function allows attacker-controlled domain values or unparsed array ent

CVE-2022-31151 MEDIUM POC
6.5 Jul 21

Authorization headers are cleared on cross-origin redirect. Rated medium severity (CVSS 6.5), this vulnerability is remo

CVE-2022-32210 MEDIUM POC
6.5 Jul 14

`Undici.ProxyAgent` never verifies the remote server's certificate, and always exposes all request & response data to th

CVE-2026-15157 MEDIUM POC
5.4 Jul 29

CRLF injection in undici's HTTP/1.1 dispatcher enables HTTP header injection and potential request smuggling when applic

CVE-2023-23936 MEDIUM POC
5.4 Feb 16

Undici is an HTTP/1.1 client for Node.js. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable,

CVE-2022-35948 MEDIUM POC
5.3 Aug 15

undici is an HTTP/1.1 client, written from scratch for Node.js.`=< undici@5.8.0` users are vulnerable to _CRLF Injection

CVE-2026-13697 CRITICAL
9.1 Jul 29

Cross-user information disclosure and a parse-time denial of service in undici's HTTP cache interceptor affect versions

CVE-2026-109383 CRITICAL POC
9.1 Oct 15

Certificate pinning and custom TLS identity checks can be silently bypassed in undici versions 4.0.0 through 6.29.0, 7.0

CVE-2026-109829 CRITICAL POC
9.1 Oct 15

Persistent cache poisoning and disclosure of user-specific responses affect undici 7.0.0 through 7.30.0 and 8.0.0 throug

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Liberty Linux 10 Fixed
SUSE Liberty Linux 8 Fixed
SUSE Liberty Linux 9 Fixed
SUSE Linux Enterprise High Performance Computing 12 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy