npm
CVE-2026-109383
undici vulnerable to TLS certificate validation bypass via dropped tls options in Agent
- Severity
- High 7.4
- Published
- 27 Oct 2026
- Last changed
- 27 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 6.29.1, 7.30.1, 8.12.2
- Exploit chance
- 0.2% in the next 30 daysHigher than 7% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Read data · Change data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N- Also known as
- GHSA-2m5v-pch6-74hx
- Sources
- OSV.dev and GitHub
Description
undici's Agent passes its constructor options through a JSON-based deep clone (JSON.parse(JSON.stringify(...))) before forwarding them to each per-origin Pool. JSON cannot represent functions, so a caller-supplied tls option containing a checkServerIdentity callback is silently dropped before it reaches the TLS layer. As a result, a TLS peer whose certificate a custom checkServerIdentity was written to reject, but which passes Node's default hostname and chain checks, is silently accepted when the request is made through Agent. Because Agent is the default dispatcher behind request, fetch, and setGlobalDispatcher, this is the path most applications use. EnvHttpProxyAgent is also affected on its direct and NO_PROXY routes, which delegate to an internal Agent.
Only applications that pass a function-valued tls option (such as a custom checkServerIdentity for certificate or public-key pinning) are affected. Passing the same options through connect is not affected.
Workarounds
Pass the TLS options through connect instead of tls. For proxied EnvHttpProxyAgent destinations, use requestTls / proxyTls.
Affected software
| Software | Affected versions |
|---|---|
undicinpm · osv:npm:undici |
|
About undici
- Weekly downloads (npm)
- 355,862,465npm, 22 Nov 2026
Vulnerabilities in undici
- In our list
- 15
- Published in the last 12 months
- 15
- Critical, last 12 months
- 0
- High, last 12 months
- 6
- Known exploited
- 0
- CVE-2026-116630undici vulnerable to cross-user information disclosure via cross-origin redirect revalidationMedium 5.9 6 Nov 2026
- CVE-2026-120415undici vulnerable to cross-origin credential disclosure via array-of-tuples headers bypassing redirect strippingMedium 5.9 6 Nov 2026
- CVE-2026-120423undici vulnerable to Subresource Integrity bypass via whitespace in integrity metadataMedium 5.9 6 Nov 2026
- CVE-2026-116592undici vulnerable to cache poisoning and cross-user disclosure via intermediate redirect hopsHigh 7.4 6 Nov 2026
- CVE-2026-120222undici vulnerable to Denial of Service via unhandled exception in cache-interceptor response replayMedium 5.9 6 Nov 2026
- CVE-2026-120474undici vulnerable to cross-user cache disclosure via same-origin redirectMedium 6.5 6 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-109383
- GitHub Advisory Database https://github.com/advisories/GHSA-2m5v-pch6-74hx