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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-6734
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 08:46 UTC · Revision 1
Source evidence
undici vulnerable to cross-origin request routing via SOCKS5 proxy pool reuse
core-osv · Original sourcePublished 17 Jun 2026, 16:36 UTC
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.
osv:CVE-2026-6734
Complete source record
{
"id": "f53951dd300dd8cac9fd55c794c4a1df1ae2e50e73db45606a4d577699b125cf",
"url": "https://osv.dev/vulnerability/CVE-2026-6734",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "undici vulnerable to cross-origin request routing via SOCKS5 proxy pool reuse",
"summary": "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.",
"evidence": "osv:CVE-2026-6734",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-6734",
"aliases": [
"CVE-2026-6734",
"GHSA-hm92-r4w5-c3mj"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/nodejs/undici",
"type": "GIT",
"events": [
{
"introduced": "fbda3c166860772dd80b2577175617d9dddcdb81"
},
{
"fixed": "f9eba0ad9134e1c0977848476bba9d49734696e4"
},
{
"introduced": "d7fbba51772deecb830a297647456a5e9f9fec57"
},
{
"fixed": "bf684f7de01616708a33a5d1c092177622394442"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "7.23.0"
},
{
"fixed": "7.28.0"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "8.0.0"
},
{
"fixed": "8.2.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v7.27.2",
"v7.27.1",
"v7.27.0",
"v7.26.0",
"v7.25.0",
"v7.24.8",
"v8.1.0",
"v8.0.3",
"v8.0.2",
"v8.0.1",
"v8.0.0",
"v7.24.7",
"v7.24.6",
"v7.24.5",
"v7.24.4",
"v7.24.3",
"v7.24.2",
"v7.24.1",
"v7.24.0",
"v7.23.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-6734.json"
}
}
],
"modified": "2026-10-28T02:30:47.243591640Z",
"provider": "osv",
"references": [
"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6734.json",
"https://access.redhat.com/errata/RHSA-2026:22380",
"https://access.redhat.com/errata/RHSA-2026:22934",
"https://access.redhat.com/errata/RHSA-2026:34342",
"https://access.redhat.com/errata/RHSA-2026:35841",
"https://access.redhat.com/errata/RHSA-2026:35891",
"https://access.redhat.com/errata/RHSA-2026:36754",
"https://access.redhat.com/errata/RHSA-2026:36820",
"https://access.redhat.com/errata/RHSA-2026:38236",
"https://access.redhat.com/errata/RHSA-2026:39868",
"https://access.redhat.com/errata/RHSA-2026:41929",
"https://access.redhat.com/errata/RHSA-2026:48124",
"https://access.redhat.com/errata/RHSA-2026:48151",
"https://access.redhat.com/errata/RHSA-2026:56366",
"https://access.redhat.com/errata/RHSA-2026:56431",
"https://access.redhat.com/errata/RHSA-2026:57013",
"https://access.redhat.com/errata/RHSA-2026:60520",
"https://access.redhat.com/errata/RHSA-2026:65126",
"https://access.redhat.com/errata/RHSA-2026:7378",
"https://access.redhat.com/security/cve/CVE-2026-6734",
"https://cna.openjsf.org/security-advisories.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6734.json",
"https://github.com/nodejs/undici/security/advisories/GHSA-hm92-r4w5-c3mj",
"https://nvd.nist.gov/vuln/detail/CVE-2026-6734",
"https://bugzilla.redhat.com/show_bug.cgi?id=2490024"
],
"provider_metadata": {
"cwe_ids": [
"CWE-346"
],
"cna_assigner": "openjs",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6734.json"
}
},
"related_cves": [
{
"value": "CVE-2026-6734",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 515018,
"published_at": "2026-06-17T16:36:55.439+00:00"
}