CVE-2026-6734 - Impact When using Socks5ProxyAgent security control bypass

CVE ID + Title + Severity + Publication Date

  • CVE ID: CVE-2026-6734
  • Title: Impact When using Socks5ProxyAgent security control bypass
  • Severity: High (CVSS v3.1 score 8.8)
  • Publication date: 2026-06-17
  • Affected tech stack: Node.js/JavaScript supply chain
  • Revenue tags: sellable_to_fintech, enterprise_blocker, zero_day_gold

One-sentence business risk

High security control bypass in Impact When using Socks5ProxyAgent can turn a routine dependency or application endpoint into data theft, account takeover, service outage, or code execution risk that blocks production releases and customer renewals.

Root cause and affected versions

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.

  • Vulnerable range: See vendor advisory and package manager resolution for the affected range.
  • Fixed or mitigated range: Upgrade to undici v7
  • Public exploit/PoC status: Treat as public or reproducible when the advisory references a GitHub issue, exploit repository, VulnCheck entry, Wordfence entry, or public PoC. Validate only in isolated test environments.

Exact vulnerable code pattern

CVE-2026-6734: review the affected handler `handler` / `affected endpoint` and remove trust in attacker-controlled `input` before it reaches privileged code.

Fixed / mitigated code pattern

Upgrade to the fixed release, then add a regression test that sends the advisory-shaped input and proves the protected operation is rejected.

Step-by-step integration guide

  1. Inventory every direct and transitive use of Impact When using Socks5ProxyAgent with package manifests, lockfiles, SBOMs, container images, vendored source, firmware manifests, and deployment overlays.
  2. Confirm whether the vulnerable path is reachable: Impact When using Socks5ProxyAgent and attacker-controlled parameter input are the first review anchors.
  3. Upgrade to the vendor-fixed release or apply the referenced patch/backport; regenerate lockfiles, image digests, SBOMs, and deployment manifests.
  4. Patch owned code so untrusted input is validated before it reaches the vulnerable sink; use the fixed pattern above as the minimum implementation bar.
  5. Add a regression test that sends the advisory-shaped payload and proves the operation is rejected without corrupting memory, crossing trust boundaries, or changing privileged state.
  6. Run unit tests, integration tests for the affected route/parser/protocol, dependency audit, SAST rules for the sink class, and container or firmware build validation.
  7. Deploy through staged rollout with telemetry on rejected exploit-shaped inputs and a rollback plan that does not restore the vulnerable version.

Alternative mitigations

  • Disable the affected endpoint, parser, protocol feature, plugin, decoder, runner option, or integration until the fixed build is live.
  • Put a gateway/WAF rule in front of exposed HTTP paths to block advisory-shaped parameters while application code is patched.
  • For native parsers and protocol libraries, isolate processing in a sandboxed worker with seccomp/AppArmor, memory limits, ASAN canaries in staging, and crash restart rate limits.
  • For authz/authn flaws, require an additional server-side role check at the route/service layer and invalidate sessions or tokens touched during the vulnerable window.
  • For supply-chain tooling, pin the fixed version in CI images and block vulnerable versions with dependency policy.

Detection signature

rg -n "Impact When using Socks5ProxyAgent|CVE-2026-6734|Impact When using Socks5ProxyAgent|input" . and add an integration test for the advisory-shaped input.

Copy-paste skill

You are remediating CVE-2026-6734: Impact When using Socks5ProxyAgent security control bypass.

Goal: produce a reviewer-ready PR that removes exposure to CVE-2026-6734, adds regression coverage, and documents deployment/operator checks.

Rules:
- Scope only CVE-2026-6734 and directly related `Impact When using Socks5ProxyAgent` usage.
- Do not run public PoCs against production, shared staging, customer systems, or third-party infrastructure.
- Treat credentials, tokens, session data, private files, tenant IDs, and exploit samples as sensitive.
- Prefer the vendor-fixed release. Use a temporary mitigation only when upgrade is blocked and document the owner/date for removal.
- If this repository does not own an affected runtime, write `TRIAGE.md` with evidence instead of making unrelated edits.

Steps:
1. Search for `Impact When using Socks5ProxyAgent`, `CVE-2026-6734`, vulnerable package names, `affected handlers`, and parameter `input`.
2. Identify every resolved vulnerable version in manifests, lockfiles, images, SBOMs, vendored code, and deployment templates.
3. Upgrade or patch to the fixed version: Upgrade to undici v7
4. Replace the vulnerable code shape with input validation, parameterized APIs, strict bounds checks, canonical path checks, or explicit authz as appropriate.
5. Add a negative regression test for the advisory-shaped payload and a positive test for legitimate behavior.
6. Add detection from the signature section and document operator review for suspicious requests, crashes, privilege changes, or file writes.
7. Run the relevant test/build/audit commands and include outputs in the PR.

Stop and write `TRIAGE.md` if the affected runtime is not present, the fix requires production probing, or ownership of the vulnerable deployment is outside this repo.

Keywords and tags

  • Keywords: CVE-2026-6734, Impact When using Socks5ProxyAgent, security control bypass, javascript/npm, Node.js/JavaScript supply chain
  • Revenue tags: sellable_to_fintech, enterprise_blocker, zero_day_gold

References