Skip to content
Heist/ feed
UnratedFix available

undici vulnerable to Denial of Service via unhandled error in WebSocket permessage-deflate decompression

Type: advisorySource: OSV1 source record

## Impact undici's WebSocket client (including Node.js's bundled `globalThis.WebSocket`) crashes the entire Node.js process when a remote WebSocket peer sends a permessage-deflate compressed message that crosses the decompressed-payload size limit and then contains a malformed DEFLATE block. In `lib/web/websocket/permessage-deflate.js`, the size-limit cleanup calls `removeAllListeners()` on the internal zlib `InflateRaw`, removing its `error` listener, but leaves the stream running. The inflater then emits a `Z_DATA_ERROR` with no listener attached, which Node.js treats as a fatal unhandled `error` event and terminates the process. Application `error`/`close` handlers on the public WebSocket cannot observe or prevent this, because the failing object is the internal `InflateRaw`. A malicious or compromised WebSocket server can crash a client with a single connection, unauthenticated and without any application mistake. The attack is asymmetric (about 130 KB on the wire expands past the limit) and can be repeated on reconnect (crash loop). Affected applications are those using the undici WebSocket client (`new WebSocket(...)`) or Node.js's bundled `globalThis.WebSocket` that can be induced to connect to an attacker-controlled or compromised WebSocket endpoint. ## Patches Upgrade to undici v6.28.1, v7.29.1 or v8.10.2. ## Workarounds No workaround is available.

Announced Group revision 1
Original source ↗

GHSA-3wwx-pv8p-q78v

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:GHSA-3wwx-pv8p-q78v

undici

Source reference: /affected/0/package/name

Affected versions
Not stated in this record
Fixed versions
6.28.1

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

undici

Source reference: /affected/1/package/name

Affected versions
Not stated in this record
Fixed versions
7.29.1

Source reference: /affected/1/ranges

Prerequisites
Not stated in this record

undici

Source reference: /affected/2/package/name

Affected versions
Not stated in this record
Fixed versions
8.10.2

Source reference: /affected/2/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "6.25.0"
          },
          {
            "fixed": "6.28.1"
          }
        ]
      }
    ],
    "package": {
      "name": "undici",
      "purl": "pkg:npm/undici",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-3wwx-pv8p-q78v/GHSA-3wwx-pv8p-q78v.json"
    }
  },
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "7.28.0"
          },
          {
            "fixed": "7.29.1"
          }
        ]
      }
    ],
    "package": {
      "name": "undici",
      "purl": "pkg:npm/undici",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-3wwx-pv8p-q78v/GHSA-3wwx-pv8p-q78v.json"
    }
  },
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "8.1.0"
          },
          {
            "fixed": "8.10.2"
          }
        ]
      }
    ],
    "package": {
      "name": "undici",
      "purl": "pkg:npm/undici",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-3wwx-pv8p-q78v/GHSA-3wwx-pv8p-q78v.json"
    }
  }
]
Related CVEs
CVE-2026-85024

Source reference: /aliases

Publisher severity

No explicit severity was provided.

Event
#23694 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement