Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Node service using undici SOCKS5 ProxyAgent with requestTls pin
-
DeliveryPosition on proxy-to-origin path
-
ExploitPresent cert from any Mozilla-trusted CA for target host
-
Executionundici skips pinned CA and accepts cert
-
PersistDecrypt and modify tunneled HTTPS traffic
-
ImpactExfiltrate credentials or inject responses
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
|
| Exploitation Conditions | Exploitation requires three concrete conditions present simultaneously: the application must instantiate undici's ProxyAgent or Socks5ProxyAgent with a proxy URI whose scheme is socks5:// or socks://; the application must rely on the requestTls option (specifically ca, cert, key, rejectUnauthorized, or servername) to constrain the TLS trust scope of the tunneled HTTPS connection; and the attacker must hold a network position between the SOCKS5 proxy and the target server plus a certificate for the target hostname chained to any CA in Node's default Mozilla bundle. Limiting factors: deployments that use HTTP CONNECT proxies, that do not set requestTls, or that pin via a CA already in the Mozilla bundle are unaffected; undici versions before 7.23.0 (pre-SOCKS5) are not vulnerable. |
| Impact | The CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N vector reflects a network-reachable, unauthenticated MITM with high confidentiality and integrity impact but elevated attack complexity, which is appropriate: the attacker must already be positioned to intercept the SOCKS5-tunneled TLS session and must possess (or obtain) a certificate trusted by Mozilla's root store for the target hostname - historically achievable via mis-issued or compromised public CAs but non-trivial. EPSS and KEV data were not provided in the input, and no public exploit identified at time of analysis, so this is best treated as a latent supply-chain trust failure rather than an opportunistic exploitation candidate. Real risk is concentrated in environments that deliberately pin to a private/corporate CA over SOCKS5 (e.g., zero-trust egress, internal mTLS gateways) where the silent fallback defeats the exact control the deployment relies on; environments using HTTP proxies or no pinning are not exposed. |
| Exploit ScenarioDerived | A defender configures a Node.js service to call an internal API over a corporate SOCKS5 egress proxy with requestTls.ca pinned to the internal root CA. An attacker positioned on the proxy-to-target network path (rogue SOCKS5 operator, compromised egress hop, or a public-CA mis-issuance combined with BGP/DNS hijack) presents a certificate signed by any Mozilla-trusted CA for the target hostname; undici silently accepts it, allowing the attacker to read and tamper with the HTTPS exchange. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 17, 2026
TLS pinning bypass in undici 7.23.0 through 7.27.x and 8.x prior to 8.5.0 allows network-positioned attackers to perform man-in-the-middle attacks on HTTPS traffic routed through SOCKS5 proxies. The ProxyAgent silently drops the requestTls option (including ca, cert, key, rejectUnauthorized, and servername) when the proxy URI uses socks5:// or socks://, causing connections to fall back to Node.js's default Mozilla CA bundle instead of the application-configured trust anchor. No public exploit identified at time of analysis, but the CWE-295 improper certificate validation flaw directly defeats corporate CA pinning controls.
RemediationAI
Vendor-released patch: upgrade undici to v7.28.0 or v8.5.0, which propagate requestTls through the SOCKS5 code path; this is the only complete fix and should be applied via the project's package manager (npm/yarn/pnpm) and any transitive dependents that pin older undici. No in-path workaround exists for the SOCKS5 connector, so if upgrading is blocked, the vendor recommends switching the proxy URI to an HTTP-proxy ProxyAgent (http:// or https://) where requestTls is honored - note this requires deploying or fronting the SOCKS5 endpoint with an HTTP CONNECT proxy and may break environments that mandate SOCKS5 for policy reasons. As an interim compensating control, audit code paths that combine ProxyAgent with socks5://, and either disable SOCKS5 routing for TLS-pinned destinations or move the affected outbound calls to a different HTTP client until patching is complete. See https://github.com/nodejs/undici/security/advisories/GHSA-vmh5-mc38-953g for the canonical advisory.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
undici is the official Node.js HTTP/1.1 client library that powers fetch() in modern Node releases. Its ProxyAgent abstraction supports tunneling through HTTP CONNECT and, since version 7.23.0, SOCKS5 proxies via an internal Socks5ProxyAgent. The bug is a CWE-295 (Improper Certificate Validation) where the SOCKS5 code path fails to propagate the requestTls option into the TLS upgrade performed on the tunneled socket - so the secure socket is created with Node's default tls.connect options. This effectively reverts trust evaluation to the bundled Mozilla root store and disables any caller-supplied pinning, mutual-TLS material, or hostname override, even though the same configuration is honored on the HTTP-CONNECT proxy path. The CPE cpe:2.3:a:undici:undici:*:*:* confirms the upstream npm package is the only affected component.
Know when Undici gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Network-reachable MITM with no auth or user interaction, but AC:H because the attacker needs both proxy-path positioning and a Mozilla-trusted cert; full read/tamper of TLS, no availability impact.
Primary rating from Vendor (openjs).
CVSS VectorVendor: openjs
Lifecycle Timeline
2DescriptionCVE.org
Impact: undici's ProxyAgent silently drops the requestTls option when configured with a SOCKS5 proxy URI (socks5:// or socks://). The target HTTPS connection through the SOCKS5 tunnel falls back to Node's default trust store, ignoring user-configured ca, cert, key, rejectUnauthorized, and servername settings.
Applications that pin to an internal or corporate CA via requestTls.ca will, when their proxy URI is SOCKS5, get the default Mozilla CA bundle as the trust anchor instead. Any cert signed by any publicly-trusted CA for the target hostname is accepted, breaking the intended pin and enabling MITM read and tamper of the HTTPS exchange.
Affected applications are those that use undici's ProxyAgent (or Socks5ProxyAgent directly) with SOCKS5 AND rely on requestTls for TLS scope restriction. The bug was introduced in undici 7.23.0 when SOCKS5 support was added.
Patches: Upgrade to undici v7.28.0 or v8.5.0.
Workarounds: No workaround is available within the SOCKS5 path. If a SOCKS5 proxy with TLS scope restriction is required and an upgrade is not yet possible, route the traffic through an HTTP-proxy ProxyAgent instead, where requestTls is honored correctly.
Executive ViewAI
Undici versions 7.23.0 through 7.27.x and 8.x prior to 8.5.0 contain a TLS pinning bypass vulnerability that allows network-positioned attackers to conduct man-in-the-middle attacks against HTTPS connections routed through SOCKS5 proxies. The flaw silently disables certificate pinning controls and reverts to default CA validation, directly undermining organizations' defenses against sophisticated network threats. This affects any application using undici for proxy-based communications that relies on certificate pinning for supply chain or network integrity protection.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Avoid SOCKS5 proxy routing for undici-based connections; (2) Implement network-layer certificate inspection and alerting for unexpected CAs; (3) Restrict SOCKS5 endpoints to fully monitored, hardened infrastructure only; (4) Migrate security-critical connections to alternative HTTP clients without this vulnerability; (5) Subscribe to undici security advisories and deploy patched version immediately upon release.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
undici is an HTTP/1.1 client, written from scratch for Node.js.`undici` is vulnerable to SSRF (Server-side Request Forge
Memory exhaustion denial of service in the undici WebSocket client (versions 6.17.0 and later) allows a malicious or com
Cross-user information disclosure in undici's cache interceptor allows authenticated users' responses to be served from
Cookie attribute injection in undici's setCookie function allows attacker-controlled domain values or unparsed array ent
Authorization headers are cleared on cross-origin redirect. Rated medium severity (CVSS 6.5), this vulnerability is remo
`Undici.ProxyAgent` never verifies the remote server's certificate, and always exposes all request & response data to th
CRLF injection in undici's HTTP/1.1 dispatcher enables HTTP header injection and potential request smuggling when applic
Undici is an HTTP/1.1 client for Node.js. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable,
undici is an HTTP/1.1 client, written from scratch for Node.js.`=< undici@5.8.0` users are vulnerable to _CRLF Injection
Cross-user information disclosure and a parse-time denial of service in undici's HTTP cache interceptor affect versions
Certificate pinning and custom TLS identity checks can be silently bypassed in undici versions 4.0.0 through 6.29.0, 7.0
Persistent cache poisoning and disclosure of user-specific responses affect undici 7.0.0 through 7.30.0 and 8.0.0 throug
Same weakness CWE-295 – Improper Certificate Validation
View allSame technique Authentication Bypass
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Liberty Linux 10 | Fixed |
| SUSE Liberty Linux 8 | Fixed |
| SUSE Liberty Linux 9 | Fixed |
EUVD-2026-37763
GHSA-vmh5-mc38-953g
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB