CVE-2026-129981
undici vulnerable to cross-user cache disclosure via mismatched-ETag 304 revalidation
Description
undici is an HTTP client for Node.js. In versions 7.17.0 through 7.30.3 and 8.0.0 through 8.14.0, when the cache interceptor is used with a shared cache and serves a response inside its stale-while-revalidate window, it revalidates the stored response in the background, and if that background 304 Not Modified carries an ETag that differs from the cached representation, undici reuses the stored body and binds it to the new validator and freshness lifetime instead of discarding it, unlike the synchronous revalidation path. A remote origin that answers the background conditional request this way makes the shared cache keep serving a stale representation to later callers, which on a shared cache holding per-caller or otherwise sensitive responses can disclose one caller's body to another and serve a body the origin has already replaced. Applications are affected only when a shared cache store is used and the origin returns a 304 with a mismatched ETag during background revalidation. The issue is fixed in undici 7.30.4 and 8.14.1, and users should upgrade to one of those versions or later. As a workaround, use a per-caller cache store for responses that are not safe to share, or mark such responses no-store or private so they are not retained in a shared cache.
INFO
Published Date :
Dec. 5, 2026, 11:17 a.m.
Last Modified :
Dec. 5, 2026, 11:17 a.m.
Remotely Exploit :
No
Source :
ce714d77-add3-4f53-aff5-83d477b104bb
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | ce714d77-add3-4f53-aff5-83d477b104bb | ||||
| CVSS 3.1 | MEDIUM | MITRE-CVE |
Solution
- Upgrade undici to version 7.30.4 or 8.14.1 or later.
- Use per-caller cache stores for sensitive responses.
- Mark sensitive responses as no-store or private.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-129981.
| URL | Resource |
|---|---|
| https://cna.openjsf.org/security-advisories.html | |
| https://github.com/nodejs/undici/security/advisories/GHSA-qpmw-hmf2-3j36 |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-129981 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-129981
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-129981 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-129981 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by ce714d77-add3-4f53-aff5-83d477b104bb
Dec. 05, 2026
Action Type Old Value New Value Added Description undici is an HTTP client for Node.js. In versions 7.17.0 through 7.30.3 and 8.0.0 through 8.14.0, when the cache interceptor is used with a shared cache and serves a response inside its stale-while-revalidate window, it revalidates the stored response in the background, and if that background 304 Not Modified carries an ETag that differs from the cached representation, undici reuses the stored body and binds it to the new validator and freshness lifetime instead of discarding it, unlike the synchronous revalidation path. A remote origin that answers the background conditional request this way makes the shared cache keep serving a stale representation to later callers, which on a shared cache holding per-caller or otherwise sensitive responses can disclose one caller's body to another and serve a body the origin has already replaced. Applications are affected only when a shared cache store is used and the origin returns a 304 with a mismatched ETag during background revalidation. The issue is fixed in undici 7.30.4 and 8.14.1, and users should upgrade to one of those versions or later. As a workaround, use a per-caller cache store for responses that are not safe to share, or mark such responses no-store or private so they are not retained in a shared cache. Added CVSS V3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N Added CWE CWE-345 Added CWE CWE-524 Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/129xxx/CVE-2026-129981.json">CVE-2026-129981</a> Added Reference https://cna.openjsf.org/security-advisories.html Added Reference https://github.com/nodejs/undici/security/advisories/GHSA-qpmw-hmf2-3j36