Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-109383 Overview
CVE-2026-109383 affects undici, the HTTP client library used by Node.js for fetch, request, and setGlobalDispatcher. The Agent dispatcher clones constructor options through JSON.parse(JSON.stringify(...)) before forwarding them to each per-origin pool. JSON cannot represent functions, so a caller-supplied tls.checkServerIdentity callback is silently dropped before reaching the TLS layer. Peers that would be rejected by a custom pinning callback are accepted when they pass Node's default hostname and chain checks. The flaw is tracked as improper certificate validation [CWE-295].
Critical Impact
Applications relying on custom checkServerIdentity for certificate or public-key pinning lose that defense entirely, enabling TLS impersonation by any peer with a valid chain.
Affected Products
- undici versions 4.0.0 through 6.29.0
- undici versions 7.0.0 through 7.30.0
- undici versions 8.0.0 through 8.12.1
Discovery Timeline
- 2026-10-15 - CVE-2026-109383 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-109383
Vulnerability Analysis
The Agent dispatcher is the default transport behind undici.request, undici.fetch, and setGlobalDispatcher. When constructed, it deep-clones its options so each per-origin Pool receives an isolated copy. The clone uses JSON serialization, which drops any value whose type is function. Callers that pass a tls object with a checkServerIdentity property see that property removed before the pool initializes a TLSSocket. The TLS layer then falls back to Node's default hostname verification against the certificate's subjectAltName, which succeeds for any CA-trusted peer.
The practical result is a certificate pinning bypass. Code written to reject specific public keys or issuer chains never executes. EnvHttpProxyAgent is affected on both its direct and no-proxy routes because it delegates to Agent.
Root Cause
The JSON-based deep clone cannot preserve function values. The TLS options object is passed through this clone without exception handling for non-serializable fields. The fix in undici 6.29.1, 7.30.1, and 8.12.2 preserves the tls option outside the JSON path so custom verification callbacks reach the TLS socket unchanged.
Attack Vector
An attacker able to present a certificate signed by any CA in Node's trust store, or one that otherwise satisfies default hostname validation, can impersonate the intended origin. This includes operators of upstream networks, compromised CAs, or attackers with access to misissued certificates. No user interaction is required, and the vulnerability is exploitable over the network against any application performing outbound HTTPS with a custom pinning callback.
The exploitation mechanism requires no payload — the attacker simply serves TLS with a valid chain, and the dropped checkServerIdentity callback never runs to enforce pinning constraints.
Detection Methods for CVE-2026-109383
Indicators of Compromise
- Outbound HTTPS connections from Node.js services terminating at unexpected IP addresses or hostnames inconsistent with pinned endpoints.
- Absence of application-level TLS verification log entries that would normally fire when checkServerIdentity rejects a peer.
- Presence of vulnerable undici versions (4.0.0–6.29.0, 7.0.0–7.30.0, 8.0.0–8.12.1) in package-lock.json or node_modules.
Detection Strategies
- Run software composition analysis against lockfiles to flag affected undici ranges, including transitive dependencies pulled in by node-fetch replacements and SDKs.
- Grep source for tls: option objects containing checkServerIdentity passed to new Agent(), EnvHttpProxyAgent, or setGlobalDispatcher and confirm the runtime undici version is patched.
- Capture egress TLS metadata at the network edge and alert when certificate fingerprints for pinned destinations deviate from the expected set.
Monitoring Recommendations
- Instrument HTTPS clients with explicit post-handshake logging of peer certificate fingerprints to detect pin failures that previously would have terminated the connection.
- Monitor dependency graphs continuously for new undici releases and alert when workloads lag the fixed versions.
- Correlate outbound connection anomalies with recent dependency changes to surface regressions introduced by indirect undici upgrades.
How to Mitigate CVE-2026-109383
Immediate Actions Required
- Upgrade undici to 6.29.1, 7.30.1, 8.12.2, or later across all services and container images.
- Rebuild and redeploy applications that bundle undici through transitive dependencies, including SDKs and frameworks that embed it.
- Audit code paths that rely on checkServerIdentity for certificate or public-key pinning and verify the callback executes after upgrade.
Patch Information
The maintainers released fixes in undici 6.29.1, 7.30.1, and 8.12.2. The patch preserves the tls option outside the JSON clone so function-valued properties survive forwarding to each per-origin pool. See the GitHub Security Advisory GHSA-2m5v-pch6-74hx and the OpenJSF Security Advisories for release details.
Workarounds
- Pass TLS options through the connect option instead of tls so the function-valued callback is preserved.
- For proxied destinations, use requestTls and proxyTls rather than the top-level tls field.
- Temporarily route traffic through a pinning-aware forward proxy until all services run a patched undici version.
# Upgrade undici to a patched release
npm install undici@^8.12.2
# or, for the 7.x line
npm install undici@^7.30.1
# or, for the 6.x line
npm install undici@^6.29.1
# Verify the installed version
npm ls undici
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

