# CVE-2026-85008: undici cache interceptor unsafe HTTP method caching

Source: https://junglewise.ai/threats/cve-2026-85008-undici-cache-interceptor-unsafe-http-method-caching  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-04. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2026-85008 · Severity: low · CVSS 3.7 · Published 2026-09-04

undici is a popular Node.js HTTP client library. Its cache interceptor is documented to cache only safe HTTP methods (GET, HEAD), but due to a logic error, it also inadvertently caches responses to state-changing requests (POST, PUT, DELETE). A malicious web server can send cacheable response headers that cause undici to store and replay responses to these unsafe requests, preventing state-changing operations from reaching the origin and causing potential data integrity issues.

Technologies: [undici (npm)](https://junglewise.ai/threats/technologies/undici). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-85008 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-85008 being exploited in the wild.

**How severe is CVE-2026-85008?** Low severity, with a CVSS score of 3.7, published 4 September 2026.

**Which products and versions are affected?** undici (npm) SEMVER:introduced=7.0.0,fixed=7.29.1.

**Is there a fix for CVE-2026-85008?** Yes. undici (npm): upgrade to 7.29.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-85008 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-85008?** Check whether you run undici (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- undici (npm): upgrade to 7.29.1 or later

  ```sh
  npm install undici@7.29.1
  ```


## Technical details

The vulnerability is a logic error in undici's cache interceptor (CWE-345: Insufficient Verification of Data Authenticity). The skip-list for methods to exclude from caching is built by subtracting configured methods from the set of safe methods; since unsafe methods (POST, PUT, PATCH, DELETE) are not in the safe set, they are never added to the skip-list and fall through to the cache-read path. Additionally, the response-storage gate (canCacheResponse) lacked a method check, allowing responses to unsafe requests to be cached if they have heuristically-cacheable status codes (e.g., 404) or explicit Cache-Control directives. An untrusted origin can trigger this by responding with appropriate Cache-Control headers, causing subsequent identical requests to be served from cache without contacting the origin. The attack requires no privileges or user interaction and occurs at the network level. Patches are available in undici versions 7.29.1 and 8.10.2.

## Affected products

- OpenJS Foundation undici 7.0.0 to 7.29.0, 8.0.0 to 8.10.1

## Identifiers

- CVE-2026-85008
- GHSA-8436-99hf-9mmv

## Timeline

- 2026-09-04: disclosed

## References

- [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html)
- [https://github.com/nodejs/undici/security/advisories/GHSA-8436-99hf-9mmv](https://github.com/nodejs/undici/security/advisories/GHSA-8436-99hf-9mmv)

## Related threats

- [undici HTTP client denial of service in decompress interceptor](https://junglewise.ai/threats/cve-2026-87029-undici-is-an-http-client-library-for-node-js-in-versions-7-15-0)
- [undici denial of service via TLS 1.2 certificate renegotiation](https://junglewise.ai/threats/cve-2026-87018-undici-is-an-http-client-library-for-node-js-in-versions-4-2-1)
- [undici WebSocket client denial of service via unbounded PONG buffering](https://junglewise.ai/threats/cve-2026-109932-undici-is-an-http-client-library-for-node-js-in-versions-5-15-0)
- [undici EventSource memory exhaustion denial of service](https://junglewise.ai/threats/cve-2026-109924-undici-is-an-http-client-library-for-node-js-in-versions-6-5-0)
- [undici HTTP client denial of service via excessive content-encodings](https://junglewise.ai/threats/cve-2026-109869-undici-is-an-http-client-library-for-node-js-in-versions-6-23-0)
