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

Published Jun 17, 2026
·
Updated

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 #4385 and affects all versions through 8.1.0.

Patches

Upgrade to undici v7.28.0 or v8.2.0

Workarounds

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

Other sources

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.

— Red Hat

Affected Software

10 affected componentsFixes available
npm/undici>=7.23.0<=8.1.0
npm/undici>=8.0.0<8.2.0
8.2.0
npm/undici>=7.23.0<7.28.0
7.28.0
IBM Aspera Enterprise WebApps<=1.0.0 - 1.0.5
Nodejs Undici Node.js>=7.23.0<7.28.0
Nodejs Undici Node.js>=8.0.0<8.2.0
ubuntu/node-undici*
ubuntu/node-undici*
ubuntu/node-undici*
ubuntu/node-undici*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/undici to a version that resolves this vulnerability.

    Fixed in 8.2.0
  2. Upgrade

    Upgrade npm/undici to a version that resolves this vulnerability.

    Fixed in 7.28.0
  3. Upgrade

    Upgrade undici to a version that resolves this vulnerability.

    Fixed in 7.28.0
  4. Upgrade

    Upgrade undici to a version that resolves this vulnerability.

    Fixed in 8.2.0
  5. Compensating control

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

Event History

Jun 17, 2026
CVE Published
via MITRE·04:36 PM
Data Sourced
via MITRE·04:36 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·06:18 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·06:18 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·07:04 PM
DescriptionSeverityAffected Software
Jun 19, 2026
Advisory Published
via GitHub·02:20 PM
Data Sourced
via GitHub·02:20 PM
DescriptionSeverityWeaknessAffected Software
Jun 27, 2026
Data Sourced
via NVD·11:49 PM
Affected Software
Updated
via NVD·11:49 PM
Severity
Event
via NVD·11:49 PM
Jun 30, 2026
Updated
via NVD·03:21 AM
SeverityWeakness
Aug 3, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Sep 1, 2026
Updated
via IBM·12:00 AM
Affected Software
Sep 8, 2026
Updated
via IBM·12:00 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-6734?

The severity of CVE-2026-6734 is classified as high with a score of 7.5.

2

How does CVE-2026-6734 affect the undici library?

CVE-2026-6734 affects the undici library by allowing cross-origin request routing via the reuse of a SOCKS5 proxy connection pool without verifying the origin.

3

What are the potential impacts of CVE-2026-6734?

The potential impacts of CVE-2026-6734 include unauthorized access to different origins due to incorrect routing of requests.

4

How can I mitigate the risks associated with CVE-2026-6734?

To mitigate the risks associated with CVE-2026-6734, ensure that the undici library is updated to a version that addresses this vulnerability.

5

What is the recommended action for users of undici concerning CVE-2026-6734?

The recommended action for users of undici is to review their usage of the Socks5ProxyAgent and update to a secure version as soon as possible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203