CVE-2026-85008

undici vulnerable to caching and replay of unsafe HTTP method responses

Published Sep 4, 2026 CVSS 3.1 · 3.7 Low EPSS < 1% KEV · Not listed
Description
undici's cache interceptor documents that only safe HTTP methods are cached, but its logic to skip caching is built by subtracting the configured methods from the set of safe methods, so an unsafe method such as POST, PUT, or DELETE is never placed in the skip list and instead falls through to the full cache-read path. The response-storage gate also lacked a method check, so a response to an unsafe request that is heuristically cacheable or carries an explicit Cache-Control directive is stored and later replayed from cache. Because response headers from a remote origin are untrusted, an origin can answer once with a cacheable status and then have the client's own subsequent state-changing requests to that path served from the stale cache entry without ever reaching the origin, an integrity failure that occurs under the interceptor's default configuration. This affects undici versions from 7.0.0 up to 7.29.1 and from 8.0.0 up to 8.10.2. Users should upgrade to undici 7.29.1 or 8.10.2.

Analysis

AI-generated

Technical impact

The flaw in undici’s cache interceptor allows unsafe HTTP methods such as POST, PUT, or DELETE to be cached because the logic that skips caching mistakenly excludes these methods from the skip list. A response to an unsafe request that is either heuristically cacheable or carries a Cache‑Control directive is then stored and can be replayed for subsequent identical requests. Since response headers from the origin are untrusted, an attacker can orchestrate a scenario where a client’s state‑changing request receives a stale, cached response instead of reaching the original server, thereby preventing the intended state change and breaching data integrity. This has the character of an integrity failure driven by improper cache validation (CWE‑345) and improper caching of unsafe HTTP methods (CWE‑444).

Affected Systems

All Node.js applications that use the undici HTTP client library versions 7.0.0 through 7.29.1 and 8.0.0 through 8.10.2 are affected. The vulnerability exists in the undici:undici product as maintained by the Node.js Foundation.

Risk and Exploitability

The vulnerability carries a CVSS score of 3.7, indicating a low severity classification. EPSS data is unavailable and the issue is not listed in the CISA KEV catalog, suggesting limited known exploitation. The likelihood of exploitation is inferred to be low because an attacker would need to induce the client to make a cacheable unsafe request and rely on an intermediary that respects undici’s caching policy. Nevertheless, the integrity impact, as described by CWE‑345 and CWE‑444, warrants prompt action. No requirement for privileged access or remote code execution is necessary; the exploit relies on normal client traffic and cache behavior.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade undici to version 7.29.1 or 8.10.2
  • If an upgrade is not immediately possible, configure undici to disable caching of unsafe HTTP methods in the interceptor settings
  • As a temporary workaround, disable the cache interceptor altogether in production environments

Generated by OpenCVE AI on September 5, 2026 at 01:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8436-99hf-9mmv undici vulnerable to caching and replay of unsafe HTTP method responses
History
Type Values Removed Values Added
First Time appeared Nodejs
Nodejs undici
CPEs cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*
Vendors & Products Nodejs
Nodejs undici
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Undici
Undici undici
Vendors & Products Undici
Undici undici
Type Values Removed Values Added
Description undici's cache interceptor documents that only safe HTTP methods are cached, but its logic to skip caching is built by subtracting the configured methods from the set of safe methods, so an unsafe method such as POST, PUT, or DELETE is never placed in the skip list and instead falls through to the full cache-read path. The response-storage gate also lacked a method check, so a response to an unsafe request that is heuristically cacheable or carries an explicit Cache-Control directive is stored and later replayed from cache. Because response headers from a remote origin are untrusted, an origin can answer once with a cacheable status and then have the client's own subsequent state-changing requests to that path served from the stale cache entry without ever reaching the origin, an integrity failure that occurs under the interceptor's default configuration. This affects undici versions from 7.0.0 up to 7.29.1 and from 8.0.0 up to 8.10.2. Users should upgrade to undici 7.29.1 or 8.10.2.
Title undici vulnerable to caching and replay of unsafe HTTP method responses
Weaknesses CWE-345
References
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N'}

Weaknesses
  • CWE-345

    Insufficient Verification of Data Authenticity

  • CWE-444

    Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

Sources

Status
PUBLISHED
Assigner
openjs
Published
Updated
Sep 4, 2026, 7:28 PM
Reserved
Sep 2, 2026, 6:36 PM
Status
Analyzed
Published
Sep 4, 2026, 5:17 PM
Modified
Sep 15, 2026, 2:20 PM
Severity
Low
Public date
Sep 4, 2026, 4:42 PM