Undici Security Update: 14 CVEs Fixed in 8.14.1, 7.30.4 and 6.29.2

Undici security update: 14 CVEs fixed in undici 8.14.1, 7.30.4 and 6.29.2 for Node.js HTTP clients
Undici security update: 14 CVEs fixed in undici 8.14.1, 7.30.4 and 6.29.2 for Node.js HTTP clients

Introduction

The undici security update released on December 4, 2026 fixes 14 vulnerabilities in undici, the HTTP client that also powers the built-in fetch() in Node.js. Eight of the advisories are rated High. They cover TLS certificate validation bypasses, process crashes, memory exhaustion and cross-user cache disclosure.

The fixed releases are undici 8.14.1, 7.30.4 and 6.29.2. If your Node.js application, build tool or SDK depends on undici, update it now. Also check the copy bundled inside Node.js, which you cannot update with npm.

Key Facts: Undici Security Update at a Glance

  • What: 14 advisories (CVE-2026-129981 to CVE-2026-144348), published by the undici maintainers on December 4, 2026.
  • Severity: 8 High (CVSS 3.1 7.4-7.5), 4 Medium, 2 Low, as scored in the GitHub advisories. NVD status: “Awaiting Analysis”.
  • Fixed in: undici 8.14.1 (8.x), 7.30.4 (7.x; 7.30.5 is the latest 7.x release) and 6.29.2 (6.x).
  • Most important: CVE-2026-141997 can crash a Node.js process through request() and the global fetch() with a single response from a malicious server.
  • Node.js bundled copy: Node.js 24.23.0 bundles undici 7.30.2 and Node.js 22.23.5 bundles undici 6.29.1. Both are in the affected range of CVE-2026-141997. Node.js has announced security releases for 26.x, 24.x and 22.x on or shortly after December 9, 2026.
  • Exploitation: no known exploitation. None of the CVEs is in the CISA KEV catalog as of December 6, 2026.
  • Action: upgrade the undici package, including transitive copies, and plan the Node.js update.

Vulnerability Overview: What Does This Undici Security Update Fix?

This undici security update fixes flaws in four areas: TLS checks, crash bugs, the HTTP cache and proxy credentials. Most issues need a specific undici feature, but two High issues affect common code paths.

CVEGHSASeverityIssue
CVE-2026-141997GHSA-h5rf-4xrf-76mcHigh 7.5Process crash via reachable assertion in the HTTP/1.1 response parser (also via fetch())
CVE-2026-141996GHSA-fgj4-8x8v-fqhmHigh 7.4TLS certificate validated against the wrong host after a cross-origin redirect
CVE-2026-139849GHSA-5p8q-mfqp-v63mHigh 7.4EnvHttpProxyAgent silently drops target TLS options
CVE-2026-133890GHSA-v75p-g438-v7rrHigh 7.4Cache poisoning via a protocol-relative redirect path
CVE-2026-137987GHSA-w33r-f3gw-3gchHigh 7.5CPU exhaustion via unbounded HTTP/2 reconnection
CVE-2026-137980GHSA-8gc2-q8ww-ghwgHigh 7.5Memory exhaustion in cache stores via tiny response chunks
CVE-2026-139829GHSA-mf4q-95qj-5v8fHigh 7.5Process crash in stream() with HTTP/2 request bodies
CVE-2026-138000GHSA-4232-7jh5-4qqfHigh 7.5Process crash in the retry interceptor (8.12.0 and later only)
CVE-2026-129981, CVE-2026-139839, CVE-2026-139823see ReferencesMediumCross-user or cross-host cache disclosure
CVE-2026-135194GHSA-pj2v-wx4q-45vcMedium 5.9Crash when dump and retry interceptors are combined
CVE-2026-132045GHSA-gc94-vjfp-fm7xLow 3.7Quadratic header parsing in the cache interceptor
CVE-2026-144348GHSA-qfv9-2fjm-5p4mLow 3.7Proxy credentials leaked through a shared headers object

The CVE records were assigned by the OpenJS Foundation as CNA and published on December 5, 2026.

Affected Versions: Which Undici Releases Need the Update?

Every maintained release line is affected by at least one issue.

Release lineFixed versionNotes
undici 8.x8.14.1Fixes 13 advisories. CVE-2026-141997 affected only 8.3.0 to 8.4.0 and was fixed earlier in 8.4.1. Requires Node.js 22.19.0 or later.
undici 7.x7.30.4 (latest 7.30.5)Fixes 13 advisories. 7.x is not affected by CVE-2026-138000. Requires Node.js 20.18.1 or later.
undici 6.x6.29.2Fixes 4 advisories: CVE-2026-141997, CVE-2026-141996, CVE-2026-139849 and CVE-2026-144348.
undici 5.xnoneCVE-2026-144348 affects 5.16.0 and later. The advisory lists 6.29.2 as the fix, so plan a move off 5.x.

Exact ranges differ per CVE. For example, CVE-2026-141997 affects 6.26.0 to 6.29.1 and 7.26.0 to 7.30.3.

Undici security update version table: fixed releases 8.14.1, 7.30.4 and 6.29.2 and the undici versions bundled in Node.js
Undici security update: fixed release per line and the undici copy bundled in current Node.js releases (as of December 6, 2026).

Security Impact: How Serious Are These Undici Vulnerabilities?

The biggest risks are crashes and broken TLS trust. An attacker usually needs to control or impersonate a server your application calls.

  • Denial of service. CVE-2026-141997 lets a malicious or compromised server crash the client with one response. The error is thrown outside any promise, so try/catch does not help. The advisory states that the global fetch() is affected. Apps that fetch user-supplied URLs or third-party APIs are most exposed.
  • TLS bypass. With CVE-2026-141996, a redirect target’s certificate is checked against the first host’s name. With CVE-2026-139849, EnvHttpProxyAgent can ignore your private CA, pinning or rejectUnauthorized settings, depending on the proxy environment variables. An attacker in a network position could then intercept traffic. The advisory says fetch() is not affected by CVE-2026-141996.
  • Cache poisoning and data disclosure. Four issues in the optional cache interceptor (interceptors.cache()) can make a shared cache serve one user’s or tenant’s response to another. Two more cause memory or CPU exhaustion.

How to Check Whether You Are Affected

Check three places: your direct dependency, transitive copies and the Node.js runtime.

Which undici version does my project use?

List every copy of undici in your dependency tree:

npm ls undici --all

Many SDKs and build tools pull in undici indirectly. Compare every version with the table above.

Which undici version is bundled in Node.js?

The Node.js documentation says the global fetch() is based on undici and that process.versions.undici shows the bundled version:

node -p "process.version + ' undici ' + process.versions.undici"

According to the Node.js source tree, the current releases bundle these versions (as of December 6, 2026):

Node.js releaseBundled undiciStatus
26.14.08.12.4Below 8.14.1, but outside the CVE-2026-141997 range
24.23.07.30.2In the CVE-2026-141997 range
22.23.56.29.1In the CVE-2026-141997 range

Node.js has not said which issues its December 9 releases will fix. Watch the Node.js security blog.

Will npm audit find these issues?

Not yet, as of December 6, 2026. The 14 advisories are published in the undici repository. They are not yet in the GitHub Advisory Database, which npm audit uses. Our check of npm’s advisory endpoint returned no results for undici 7.30.2, 6.29.1 or 8.12.4. Check versions directly with npm ls until the database catches up.

Do I use the risky features?

Search your code for interceptors.cache, interceptors.redirect, interceptors.retry, EnvHttpProxyAgent, ProxyAgent and stream(. Most issues need one of these features or HTTP/2. CVE-2026-141997 needs none of them.

How to Fix the Undici Vulnerabilities

The fix is to upgrade undici to a patched release, then update Node.js when its security releases arrive.

How do I apply the undici security update with npm?

For a direct dependency, install the fixed version for your line:

npm install undici@8.14.1
# or, on the 7.x line:
npm install undici@7.30.5
# or, on the 6.x line:
npm install undici@6.29.2

For transitive copies, update the parent package first. If no fixed parent release exists yet, npm’s overrides field in package.json can force a patched undici version. Test after overriding, because the parent package may expect a specific major version. Then run npm ls undici --all again and commit the lockfile.

What about the copy inside Node.js?

You cannot patch the bundled undici with npm. Plan to install the Node.js 26.x, 24.x or 22.x security release published on or after December 9, 2026. Also update container base images and CI runners.

Are there workarounds?

The advisories list workarounds for some issues. Do not compose the cache interceptor if you do not need it. Pass the same TLS options as both requestTls and connect for EnvHttpProxyAgent. Compose interceptors.dns() inside interceptors.redirect(). For CVE-2026-141997, the advisory says no workaround is available.

Additional Security Recommendations

  • Run a process supervisor (systemd, a container orchestrator or PM2) so a crashed Node.js process restarts quickly.
  • Restrict outbound requests to allowlisted hosts when you fetch user-supplied URLs. This also reduces SSRF risk.
  • Use private caches for per-user data. If you persisted a SqliteCacheStore before upgrading, clear it, as the CVE-2026-139823 advisory recommends.
  • Follow the undici and Node.js advisories, not only npm audit, for critical libraries.

FAQ

Is the undici security update urgent?

Yes, for most Node.js services. Eight High issues are fixed, and CVE-2026-141997 can crash a process through fetch(). No exploitation is known as of December 6, 2026.

Does this undici security update affect Node.js fetch()?

Partly. CVE-2026-141997 affects the global fetch(). Node.js 24.23.0 and 22.23.5 bundle undici versions in its affected range. Several other issues, such as CVE-2026-141996, do not affect fetch().

Which undici version should I install?

Install 8.14.1 on the 8.x line, 7.30.4 or later on 7.x, and 6.29.2 on 6.x. Users of undici 5.x should move to 6.29.2 or later.

Are these undici vulnerabilities exploited?

There are no public reports of exploitation, and none of the 14 CVEs is listed in the CISA KEV catalog as of December 6, 2026.

Why does npm audit show nothing?

As of December 6, 2026, the advisories were not yet in the GitHub Advisory Database used by npm audit. Check the installed versions directly.

Conclusion

This undici security update fixes 14 vulnerabilities, including a crash reachable through fetch() and two TLS validation bypasses. Upgrade undici to 8.14.1, 7.30.4 or 6.29.2, including transitive copies, and install the Node.js security releases expected on December 9, 2026.

References

Related Articles

Last Verified: December 6, 2026. Prepared by SafeWebAcademy from the undici GitHub security advisories and release notes, the CVE.org and NVD records, the Node.js source tree, documentation and security blog, npm documentation and the CISA KEV catalog linked above. This is not an official undici or Node.js publication. Security details can change, so check the linked advisories for updates.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *