GHSA-55wc-3pg8-jfw6

Suggest an improvement
Source
https://github.com/advisories/GHSA-55wc-3pg8-jfw6
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-55wc-3pg8-jfw6/GHSA-55wc-3pg8-jfw6.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-55wc-3pg8-jfw6
Aliases
Published
2026-10-27T19:02:10Z
Modified
2026-10-27T19:15:22Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
undici vulnerable to Denial of Service via unhandled exception in the decompress interceptor
Details

Impact

undici's decompress interceptor forwards decompressed response data to the downstream handler from zlib stream event callbacks without catching exceptions those callbacks may throw. undici's engine converts a synchronous throw from a downstream handler into a per-request failure, but that protection is not in place when the throw happens asynchronously from a zlib callback. As a result, a downstream handler that throws by design, for example the built-in dump interceptor which throws when a response exceeds its maxSize, escapes as an uncaught exception and terminates the Node.js process.

A malicious or compromised HTTP server can crash any client that composes the decompress interceptor with dump (or another response handler that throws), by returning a small compressed body that decompresses to more than the configured limit. The compressed bytes on the wire are tiny, so only the decompressed size matters. If the application keeps the process alive with a global uncaught-exception handler, the affected request instead hangs until the body timeout.

Patches

Upgrade to undici 7.30.1 or 8.12.2.

Workarounds

Avoid composing the decompress interceptor with a response handler that throws during response processing (such as dump with a maxSize) until upgrading.

Database specific
{
    "cwe_ids":  [
        "CWE-248"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-10-27T19:02:10Z",
    "nvd_published_at":  "2026-10-15T19:17:47Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / undici

Package

Affected ranges

Type
SEMVER
Events
Introduced
7.15.0
Fixed
7.30.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-55wc-3pg8-jfw6/GHSA-55wc-3pg8-jfw6.json"

npm / undici

Package

Affected ranges

Type
SEMVER
Events
Introduced
8.0.0
Fixed
8.12.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-55wc-3pg8-jfw6/GHSA-55wc-3pg8-jfw6.json"