Live threats

All CVEs / Nodejs

CVE-2026-109383Nodejs Undici

TLS Certificate Verification Bypass in Undici for Node.js

Critical 9.1 No auth needed

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.

Source text, unmodified. NVD.

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.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for Undici.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
nodejsundici≥ 4.0.0 < 6.29.1
nodejsundici≥ 7.0.0 < 7.30.1
nodejsundici≥ 8.0.0 < 8.12.2

Official advisories

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.