CVE-2026-109383Nodejs Undici
TLS Certificate Verification Bypass in Undici for Node.js
Critical 9.1 No auth needed
Follow: this CVE · Nodejs · Nodejs Undici We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- —
- Auth required
- No
- Published
- Oct 15, 2026
- Updated
- Oct 19, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-295
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
Undici, an HTTP client for Node.js, silently discards custom TLS verification functions (such as checkServerIdentity) during JSON cloning of Agent options, allowing certificates rejected by custom validations to be accepted if they pass Node.js default checks. Affects versions 4.0.0-6.29.0, 7.0.0-7.30.0, and 8.0.0-8.12.1, impacting applications using Agent, request, fetch, or setGlobalDispatcher.
Show the original NVD text
undici is an HTTP client library for Node.js. In versions 4.0.0 through 6.29.0, 7.0.0 through 7.30.0, and 8.0.0 through 8.12.1, its Agent dispatcher passes its constructor options through a JSON-based deep clone before forwarding them to each per-origin pool, and because JSON cannot represent functions, 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. Because Agent is the default dispatcher behind request, fetch, and setGlobalDispatcher, this affects the path most applications use, and EnvHttpProxyAgent is affected on its direct and no-proxy routes as well, while only applications that pass a function-valued tls option such as a custom checkServerIdentity for certificate or public-key pinning are at risk. The issue is fixed in undici 6.29.1, 7.30.1, and 8.12.2, which preserve the tls option outside the JSON clone so custom verification callbacks are forwarded unchanged, and users should upgrade to one of those versions or later. As a workaround, pass the TLS options through connect instead of tls, or for proxied destinations use requestTls and proxyTls.
What to do
Patch available · fixed versions: 6.29.1, 7.30.1, 8.12.2
Update Undici to version 6.29.1, 7.30.1, or 8.12.2 depending on your branch. As a temporary workaround, pass TLS options through connect instead of tls, or use requestTls and proxyTls for proxied destinations.
- Apply the vendor's security update for Undici.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | undici |
≥ 4.0.0 < 6.29.1 |
6.29.1 |
npm install undici@6.29.1 |
| npm | undici |
≥ 7.0.0 < 7.30.1 |
7.30.1 |
npm install undici@7.30.1 |
| npm | undici |
≥ 8.0.0 < 8.12.2 |
8.12.2 |
npm install undici@8.12.2 |
Per OSV / GitHub Advisories (GHSA-2m5v-pch6-74hx). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| nodejs | undici | ≥ 4.0.0 < 6.29.1 |
| nodejs | undici | ≥ 7.0.0 < 7.30.1 |
| nodejs | undici | ≥ 8.0.0 < 8.12.2 |
Official advisories
- Security update for nodejs24 · SUSE · SUSE-SU-2026:5466-1 · Nov 25, 2026 Critical
- Red Hat Security Advisory: nodejs26 security, bug fix, and enhancement update · Red Hat · RHSA-2026:98619 · Nov 23, 2026 High
- Red Hat Security Advisory: nodejs:26 security, bug fix, and enhancement update · Red Hat · RHSA-2026:98522 · Nov 23, 2026 High
- Red Hat Security Advisory: nodejs:22 security, bug fix, and enhancement update · Red Hat · RHSA-2026:98113 · Nov 23, 2026 High
Also: Red Hat (+9)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- cna.openjsf.org Vendor Advisory
- github.com Mitigation Vendor Advisory