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.

NVD

Affected Software

8 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
Nodejs Undici Node.js>=7.23.0<7.28.0
Nodejs Undici Node.js>=8.0.0<8.2.0
IBM Maximo Application Suite<=9.2
IBM Maximo Application Suite<=9.1
IBM Maximo Application Suite<=9.0

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 to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.26.0
  4. Upgrade

    Upgrade to a fixed release 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) to prevent undici from reusing a single connection pool across different origins without verifying the pool's origin.

Event History

Jun 17, 2026
CVE Published
via MITRE·04:36 PM
Data Sourced
via MITRE·04:36 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:18 PM
DescriptionSeverityWeaknessAffected Software
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
Aug 3, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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