Node.js undici Patches Cache Poisoning Flaw in Versions 7.30.4 and 8.14.1

A medium-severity vulnerability in the undici HTTP client for Node.js has been patched. The flaw, CVE-2026-139823, allowed cache poisoning and cross-host data disclosure when applications used the cache interceptor with mismatched Host headers. Fixes are available in undici 7.30.4 and 8.14.1.
Key points
- CVE-2026-139823 affects undici versions 7.0.0 through 7.30.3 and 8.0.0 through 8.14.0.
- The vulnerability occurs when the cache interceptor stores responses by origin, method, and path, while undici sends an explicit Host header to the server.
- This mismatch allows a cacheable response for one host to be served to a request for a different host without reaching the server, potentially disclosing data or allowing response manipulation.
- The issue is rated Medium severity (4.8 CVSS) due to high attack complexity, though it requires no privileges or user interaction.
- Patches are available in undici 7.30.4 and 8.14.1, which bypass the cache for requests with Host headers naming a different authority than the origin.
- Users should upgrade to the patched versions and clear persistent cache stores populated before the upgrade to remove cross-host entries.
Background
This vulnerability follows a recent trend of cache poisoning flaws in web infrastructure, including issues in Sonatype Nexus and phpwcms. undici is the HTTP client underlying Node.js's built-in fetch() implementation since version 18, making this fix critical for many Node.js applications. The advisory was published by the OpenJS Foundation on December 4, 2026, with the vulnerability reported by andrewstellman.
Why it matters
undici is a foundational component of Node.js's networking stack. A cache poisoning flaw could lead to data leakage or response manipulation in applications that use the cache interceptor with multi-host configurations. Prompt patching is essential to prevent potential exploitation, especially given the widespread use of Node.js in modern web development.
What to watch
Developers should upgrade undici to version 7.30.4 or 8.14.1 immediately. Those using persistent cache stores like SqliteCacheStore must clear them to remove any cross-host entries. As a temporary workaround, users can avoid using the cache interceptor on dispatchers with explicit Host headers, use separate dispatchers per host, or ensure servers send a Vary: Host header.
Want the full story? Read the original reporting
Read on CVEs | Zero Wire | Cloudflare Radar