Skip to content
Heist/ feed
Back to feed
Low

undici vulnerable to caching and replay of unsafe HTTP method responses

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-85008
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 23:33 UTC · Revision 1

Source evidence

undici vulnerable to caching and replay of unsafe HTTP method responses

core-osv · Original source

Published 4 Sept 2026, 16:42 UTC

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.

osv:CVE-2026-85008
Complete source record
{
  "id": "9cd8817d79f8307b7fa32eb22ce7a2b3ab11bd2092004e6d67820e905b882d03",
  "url": "https://osv.dev/vulnerability/CVE-2026-85008",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "undici vulnerable to caching and replay of unsafe HTTP method responses",
    "summary": "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.",
    "evidence": "osv:CVE-2026-85008",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2026-85008",
      "aliases": [
        "CVE-2026-85008",
        "GHSA-8436-99hf-9mmv"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/nodejs/undici",
              "type": "GIT",
              "events": [
                {
                  "introduced": "1cfe0949053aac6267f11b919cee9315a27f1fd6"
                },
                {
                  "fixed": "d39a83e7b0d631590c3b85b5cc0dbeab66c3a1d8"
                },
                {
                  "introduced": "d7fbba51772deecb830a297647456a5e9f9fec57"
                },
                {
                  "fixed": "5e541e0b9df7563e5766bbd469fbfe383d9ae6ca"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "7.0.0"
                      },
                      {
                        "fixed": "7.29.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "8.0.0"
                      },
                      {
                        "fixed": "8.10.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v8.10.1",
            "v8.10.0",
            "v8.9.0",
            "v7.29.0",
            "v7.28.0",
            "v8.8.0",
            "v8.7.0",
            "v8.6.0",
            "v8.5.0",
            "v7.27.2",
            "v8.4.1",
            "v8.4.0",
            "v7.27.1",
            "v7.27.0",
            "v7.26.0",
            "v8.3.0",
            "v8.2.0",
            "v7.25.0",
            "v7.24.8",
            "v8.1.0",
            "v8.0.3",
            "v8.0.2",
            "v8.0.1",
            "v8.0.0",
            "v7.24.7",
            "v7.24.6",
            "v7.24.5",
            "v7.24.4",
            "v7.24.3",
            "v7.24.2",
            "v7.24.1",
            "v7.24.0",
            "v7.23.0",
            "v7.22.0",
            "v7.21.0",
            "v7.20.0",
            "v7.19.2",
            "v7.19.1",
            "v7.19.0",
            "v7.18.2",
            "v7.18.1",
            "v7.18.0",
            "v7.17.0",
            "v7.16.0",
            "v7.15.0",
            "v7.14.0",
            "v7.13.0",
            "v7.12.0",
            "v7.11.0",
            "v7.10.0",
            "v7.9.0",
            "v7.8.0",
            "v7.7.0",
            "v7.5.0",
            "v7.6.0",
            "v7.4.0",
            "v7.3.0",
            "v7.2.3",
            "v7.2.2",
            "v7.2.1",
            "v7.2.0",
            "v7.1.1",
            "v7.1.0",
            "v7.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-85008.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.400373460Z",
      "provider": "osv",
      "references": [
        "https://cna.openjsf.org/security-advisories.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85008.json",
        "https://github.com/nodejs/undici/security/advisories/GHSA-8436-99hf-9mmv",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-85008"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-345"
        ],
        "cna_assigner": "openjs",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85008.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-85008",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 490919,
  "published_at": "2026-09-04T16:42:40.78+00:00"
}