HarborGuardharborguardDatabase
Back to search
HIGHCVE-2026-6734Published Modified CNA openjs

CVE-2026-6734: undici vulnerable to cross-origin request routing via SOCKS5 proxy pool reuse

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.

Metrics

CVSS v3.1
7.5
Severity
HIGH
Fixed in
7.26.0
Affected Products
1

Get notified

Email me when this CVE is updated: new fix versions, severity changes, or any record change.

HarborGuard Analysis

Synopsis

Cross-origin request routing is a logic flaw in the undici HTTP client library affecting versions 7.23.0 through 7.25.x and 8.0.0 through 8.1.0. The vulnerability is reachable over the network and requires a low-privilege account, but no victim interaction. When exploited, an attacker can cause credentials and request bodies meant for one origin to be sent to a different origin, trust responses from the wrong server, and silently downgrade HTTPS connections to HTTP. Patched-image rebuilds at versions 7.26.0 and 8.2.0 are available on HarborGuard for environments running affected versions.

HarborGuard Coverage

Detection

Detection is available across every HarborGuard environment: the CVE is ingested from upstream feeds (including the OpenJS CNA) within minutes of publication and matched against customer images in connected registries and CI pipelines, including custom-built images that bundle undici as a transitive dependency.

Available
Triage

HarborGuard scores this finding at CVSS 7.5 HIGH using the v3.1 vector and is capable of weighting that score against each environment's compliance policy to produce a prioritized finding routed to the appropriate team inbox within each customer organization.

Available
Patch

A patched-image rebuild at undici 7.26.0 or 8.2.0 is available on HarborGuard for any image found to carry an affected version. For customers who opt into auto-remediation, HarborGuard can perform the rebuild, run a regression test suite, and open a pull request against affected workloads automatically.

Available

Exploit Conditions

  • Network reachabilityRequired

    The attacker must be able to reach the vulnerable service over the network; the CVSS vector specifies AV:N, meaning no local or physical access is needed.

  • AuthenticationRequired

    A low-privilege account is sufficient; the CVSS vector specifies PR:L, so the attacker must hold at least minimal authenticated access to the application.

  • Victim interactionNot required

    No user action is needed to trigger the misrouting; the CVSS vector specifies UI:N, meaning exploitation can occur without any social engineering.

  • Attack complexityDetail

    The CVSS vector specifies AC:H, meaning exploitation depends on specific environmental conditions, such as the application making requests to more than one origin through a shared Socks5ProxyAgent instance.

Blast Radius

  • An attacker causes credentials (headers, tokens, cookies) intended for a target origin to be transmitted to a different, attacker-accessible origin.
  • Request bodies containing sensitive data are delivered to the wrong server, exposing that data to whoever controls the receiving origin.
  • The attacker receives and can act on responses from the misrouted origin, allowing it to inject fabricated response data back into the application.
  • HTTPS requests are silently sent as plain HTTP, stripping transport-layer confidentiality and exposing the full request and response to network observers.

How HarborGuard Handles This

Available on HarborGuard: detection fires within minutes of CVE publication for any image containing undici 7.23.0 through 7.25.x or 8.0.0 through 8.1.0. The finding is scored at CVSS 7.5 HIGH and routed according to each environment's compliance policy. A patched-image rebuild targeting undici 7.26.0 (for 7.x consumers) or 8.2.0 (for 8.x consumers) is available immediately. For customers who opt into auto-remediation, HarborGuard can rebuild the affected image, execute a regression run, and open a pull request against impacted workloads; median time from CVE publication to merged patch PR for high-severity issues is around 90 minutes in environments with auto-remediation enabled. Where auto-remediation is not permitted by compliance policy, the workaround of instantiating a separate Socks5ProxyAgent per origin can be applied as a compensating control until the image rebuild is approved and promoted.

See how HarborGuard automates this

Fix available

7.26.08.2.0
Affected packages
  • undici / undici
    < 7.26.0 (from 7.23.0) · < 8.2.0 (from 8.0.0)
    Fixed in 7.26.0, 8.2.0
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H