Skip to main content

undici CVE-2026-9697

| EUVDEUVD-2026-37763 HIGH
Improper Certificate Validation (CWE-295)
2026-06-17 openjs GHSA-vmh5-mc38-953g
7.4
CVSS 3.1 · Vendor: openjs
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Node service using undici SOCKS5 ProxyAgent with requestTls pin
  2. Delivery
    Position on proxy-to-origin path
  3. Exploit
    Present cert from any Mozilla-trusted CA for target host
  4. Execution
    undici skips pinned CA and accepts cert
  5. Persist
    Decrypt and modify tunneled HTTPS traffic
  6. Impact
    Exfiltrate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

undici 7.23.0 <7.28.0
undici 8.0.0 <8.5.0

Affected Packages

npm undici fix: 7.28.0, 8.5.0

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

Vendor (openjs) PRIMARY 7.4 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 7.4 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 7.4 HIGH

Primary rating from Vendor (openjs).

CVSS VectorVendor: openjs

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Jun 18, 2026 - 17:02 EUVD
CVE Published
Jun 17, 2026 - 16:46 cve.org
HIGH 7.4

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 90% exploitable
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC Vendor CIRCL GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Undici

View all
CVE-2022-35949 CRITICAL POC
9.8 Aug 12

undici is an HTTP/1.1 client, written from scratch for Node.js.`undici` is vulnerable to SSRF (Server-side Request Forge

CVE-2026-12151 HIGH POC
7.5 Jun 17

Memory exhaustion denial of service in the undici WebSocket client (versions 6.17.0 and later) allows a malicious or com

CVE-2026-14643 HIGH POC
7.5 Jul 29

Cross-user information disclosure in undici's cache interceptor allows authenticated users' responses to be served from

CVE-2026-16729 MEDIUM POC
6.5 Jul 29

Cookie attribute injection in undici's setCookie function allows attacker-controlled domain values or unparsed array ent

CVE-2022-31151 MEDIUM POC
6.5 Jul 21

Authorization headers are cleared on cross-origin redirect. Rated medium severity (CVSS 6.5), this vulnerability is remo

CVE-2022-32210 MEDIUM POC
6.5 Jul 14

`Undici.ProxyAgent` never verifies the remote server's certificate, and always exposes all request & response data to th

CVE-2026-15157 MEDIUM POC
5.4 Jul 29

CRLF injection in undici's HTTP/1.1 dispatcher enables HTTP header injection and potential request smuggling when applic

CVE-2023-23936 MEDIUM POC
5.4 Feb 16

Undici is an HTTP/1.1 client for Node.js. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable,

CVE-2022-35948 MEDIUM POC
5.3 Aug 15

undici is an HTTP/1.1 client, written from scratch for Node.js.`=< undici@5.8.0` users are vulnerable to _CRLF Injection

CVE-2026-13697 CRITICAL
9.1 Jul 29

Cross-user information disclosure and a parse-time denial of service in undici's HTTP cache interceptor affect versions

CVE-2026-109383 CRITICAL POC
9.1 Oct 15

Certificate pinning and custom TLS identity checks can be silently bypassed in undici versions 4.0.0 through 6.29.0, 7.0

CVE-2026-109829 CRITICAL POC
9.1 Oct 15

Persistent cache poisoning and disclosure of user-specific responses affect undici 7.0.0 through 7.30.0 and 8.0.0 throug

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Liberty Linux 10 Fixed
SUSE Liberty Linux 8 Fixed
SUSE Liberty Linux 9 Fixed

References

Advisories & patches

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy