Skip to content
Heist/ feed
Back to feed
Medium

undici is vulnerable to Unbounded Memory Consumption in in Undici's DeduplicationHandler via Response Buffering leads to DoS

Type: advisorySources: OSV

This is an uncontrolled resource consumption vulnerability (CWE-400) that can lead to Denial of Service (DoS). In vulnerable Undici versions, when interceptors.deduplicate() is enabled, response data for deduplicated requests could be accumulated in memory for downstream handlers. An attacker-controlled or untrusted upstream endpoint can exploit this with large/chunked responses and concurrent identical requests, causing high memory usage and potential OOM process termination. Impacted users are applications that use Undici’s deduplication interceptor against endpoints that may produce large or long-lived response bodies. PatchesThe issue has been patched by changing deduplication behavior to stream response chunks to downstream handlers as they arrive (instead of full-body accumulation), and by preventing late deduplication when body streaming has already started. Users should upgrade to the first official Undici (and Node.js, where applicable) releases that include this patch.

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

Source evidence

undici is vulnerable to Unbounded Memory Consumption in in Undici's DeduplicationHandler via Response Buffering leads to DoS

core-osv · Original source

Published 12 Mar 2026, 20:13 UTC

This is an uncontrolled resource consumption vulnerability (CWE-400) that can lead to Denial of Service (DoS). In vulnerable Undici versions, when interceptors.deduplicate() is enabled, response data for deduplicated requests could be accumulated in memory for downstream handlers. An attacker-controlled or untrusted upstream endpoint can exploit this with large/chunked responses and concurrent identical requests, causing high memory usage and potential OOM process termination. Impacted users are applications that use Undici’s deduplication interceptor against endpoints that may produce large or long-lived response bodies. PatchesThe issue has been patched by changing deduplication behavior to stream response chunks to downstream handlers as they arrive (instead of full-body accumulation), and by preventing late deduplication when body streaming has already started. Users should upgrade to the first official Undici (and Node.js, where applicable) releases that include this patch.

osv:CVE-2026-2581
Complete source record
{
  "id": "55efe1f29a7b7f10a4545fa4f2c8a808d9c83f5eb9ad4c00e36004f0e54f13f4",
  "url": "https://osv.dev/vulnerability/CVE-2026-2581",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "undici is vulnerable to Unbounded Memory Consumption in in Undici's DeduplicationHandler via Response Buffering leads to DoS",
    "summary": "This is an uncontrolled resource consumption vulnerability (CWE-400) that can lead to Denial of Service (DoS). In vulnerable Undici versions, when interceptors.deduplicate() is enabled, response data for deduplicated requests could be accumulated in memory for downstream handlers. An attacker-controlled or untrusted upstream endpoint can exploit this with large/chunked responses and concurrent identical requests, causing high memory usage and potential OOM process termination. Impacted users are applications that use Undici’s deduplication interceptor against endpoints that may produce large or long-lived response bodies. PatchesThe issue has been patched by changing deduplication behavior to stream response chunks to downstream handlers as they arrive (instead of full-body accumulation), and by preventing late deduplication when body streaming has already started. Users should upgrade to the first official Undici (and Node.js, where applicable) releases that include this patch.",
    "evidence": "osv:CVE-2026-2581",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-2581",
      "aliases": [
        "CVE-2026-2581",
        "GHSA-phc3-fgpg-7m6h"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/nodejs/undici",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d5607677d444553183b0a637f687d20167427b36"
                },
                {
                  "fixed": "07a39067a0485c1953196f500d945fe09378a176"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "7.17.0"
                      },
                      {
                        "fixed": "7.24.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "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"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-2581.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.467138901Z",
      "provider": "osv",
      "references": [
        "https://github.com/nodejs/undici/",
        "https://hackerone.com/reports/3513473",
        "https://cna.openjsf.org/security-advisories.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/2xxx/CVE-2026-2581.json",
        "https://github.com/nodejs/undici/security/advisories/GHSA-phc3-fgpg-7m6h",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-2581"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-770"
        ],
        "cna_assigner": "openjs",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "< 6.24.0; 7.0.0 < 7.24.0"
                  },
                  {
                    "last_affected": "< 6.24.0; 7.0.0 < 7.24.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/2xxx/CVE-2026-2581.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-2581",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 518867,
  "published_at": "2026-03-12T20:13:19.571+00:00"
}