CVE-2026-84947

undici vulnerable to response truncation via oversized chunked responses in the dump interceptor

Published Sep 4, 2026 CVSS 3.1 · 3.7 Low EPSS < 1% KEV · Not listed
Description
undici's dump interceptor reads and discards a response body up to a configurable maximum size. When a response declares a Content-Length that exceeds the maximum, the interceptor aborts cleanly, but when a response has no Content-Length and is chunked, the interceptor instead signals completion early once the accumulated size reaches the maximum, without pausing or aborting the request. Because the underlying parser keeps delivering body bytes, a second completion signal fires and trips an internal assertion, which aborts the request and tears down the connection. The application is left observing a misleading successful status with an empty or truncated body while the connection has actually been disconnected. This affects undici versions from 7.1.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

Undici's dump interceptor is designed to read a response body up to a configurable maximum. The vulnerability arises when a response lacks a Content-Length and uses chunked encoding. If the accumulated size reaches the maximum, the interceptor signals completion prematurely without pausing or aborting the request. Because the underlying network parser continues delivering data, a second completion event is generated, which triggers an internal assertion and forces the request to abort, tearing down the connection. The application therefore sees a successful status code but receives an empty or truncated body, while the network connection is unexpectedly closed. This flaw is a case of input validation and truncation (CWE‑20 and CWE‑248).

Affected Systems

The issue affects the undici HTTP client in Node.js. Vulnerable versions include 7.1.0 through 7.29.1 and 8.0.0 through 8.10.2. Users of undici within their applications should upgrade to either 7.29.1 or 8.10.2 to eliminate the problem.

Risk and Exploitability

The CVSS score of 3.7 reflects a low severity impact. The likely attack vector is an untrusted upstream server or HTTP client that sends oversized chunked responses, which can cause the client to misinterpret the response, leading to data loss or denial of service through repeated requests. This inference comes from the description, as the flaw relies on manipulating the response format. The EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog, indicating a low to moderate exploitation probability. Because the client misinterprets responses, monitoring for anomalous aborted connections and ensuring proper validation of response bodies remain critical.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the undici package to version 7.29.1 or 8.10.2
  • If upgrading is not immediately possible, remove or disable the dump interceptor so that raw responses are processed without premature truncation
  • Implement application‑level checks to detect if a response body was truncated or if a connection was terminated unexpectedly, and handle such cases gracefully

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

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-2gqq-gqf2-x968 undici vulnerable to response truncation via oversized chunked responses in the dump interceptor
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
First Time appeared Undici
Undici undici
Vendors & Products Undici
Undici 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
Description undici's dump interceptor reads and discards a response body up to a configurable maximum size. When a response declares a Content-Length that exceeds the maximum, the interceptor aborts cleanly, but when a response has no Content-Length and is chunked, the interceptor instead signals completion early once the accumulated size reaches the maximum, without pausing or aborting the request. Because the underlying parser keeps delivering body bytes, a second completion signal fires and trips an internal assertion, which aborts the request and tears down the connection. The application is left observing a misleading successful status with an empty or truncated body while the connection has actually been disconnected. This affects undici versions from 7.1.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 response truncation via oversized chunked responses in the dump interceptor
Weaknesses CWE-20
CWE-248
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-130

    Improper Handling of Length Parameter Inconsistency

  • CWE-20

    Improper Input Validation

  • CWE-248

    Uncaught Exception

Sources

Status
PUBLISHED
Assigner
openjs
Published
Updated
Sep 4, 2026, 6:35 PM
Reserved
Sep 2, 2026, 5:08 PM
Status
Analyzed
Published
Sep 4, 2026, 5:17 PM
Modified
Sep 15, 2026, 2:30 PM
Severity
Moderate
Public date
Sep 4, 2026, 4:53 PM