undici is vulnerable to Unhandled Exception in undici WebSocket Client Due to Invalid server_max_window_bits Validation

Summary

CVECVE-2026-2229
StatePUBLISHED
Assigneropenjs
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-03-12 21:16:25 UTC
Updated2026-07-02 12:17:01 UTC
DescriptionImpactThe undici WebSocket client is vulnerable to a denial-of-service attack due to improper validation of the server_max_window_bits parameter in the permessage-deflate extension. When a WebSocket client connects to a server, it automatically advertises support for permessage-deflate compression. A malicious server can respond with an out-of-range server_max_window_bits value (outside zlib's valid range of 8-15). When the server subsequently sends a compressed frame, the client attempts to create a zlib InflateRaw instance with the invalid windowBits value, causing a synchronous RangeError exception that is not caught, resulting in immediate process termination. The vulnerability exists because: * The isValidClientWindowBits() function only validates that the value contains ASCII digits, not that it falls within the valid range 8-15 * The createInflateRaw() call is not wrapped in a try-catch block * The resulting exception propagates up through the call stack and crashes the Node.js process

Risk And Classification

Primary CVSS: v3.1 7.5 HIGH from ADP

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Problem Types: CWE-248 | CWE-1284 | CWE-248 CWE-248 Uncaught exception | CWE-1284 CWE-1284 Improper validation of specified quantity in input | CWE-248 Uncaught Exception


VersionSourceTypeScoreSeverityVector
3.1ADPCVSS7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
3.1ce714d77-add3-4f53-aff5-83d477b104bbSecondary7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
3.10b0ca135-0b70-47e7-9f44-1890c2a1c46cSecondary7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
3.1CNACVSS7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Nodejs Undici All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Undici Undici affected < 6.24.0; 7.0.0 < 7.24.0 Not specified
CNA Undici Undici unaffected 6.24.0: 7.24.0 Not specified
ADP Red Hat Cryostat 4 On RHEL 9 Not specified Not specified
ADP Red Hat Red Hat Enterprise Linux AppStream EUS V. 10.0 Not specified Not specified
ADP Red Hat Red Hat Enterprise Linux AppStream V. 10 Not specified Not specified
ADP Red Hat Red Hat Enterprise Linux AppStream V. 8 Not specified Not specified
ADP Red Hat Red Hat Enterprise Linux AppStream EUS V.9.6 Not specified Not specified
ADP Red Hat Red Hat Enterprise Linux AppStream V. 9 Not specified Not specified
ADP Red Hat Cluster Observability Operator 1.5.0 Not specified Not specified
ADP Red Hat Red Hat Developer Hub 1.8 Not specified Not specified
ADP Red Hat Red Hat Developer Hub 1.9 Not specified Not specified
ADP Red Hat Red Hat OpenShift AI 2.16 Not specified Not specified
ADP Red Hat Red Hat OpenShift Dev Spaces 3.28 Not specified Not specified
ADP Red Hat Red Hat OpenShift Pipelines 1.2 Not specified Not specified
ADP Red Hat OpenShift Lightspeed Not specified Not specified
ADP Red Hat OpenShift Pipelines Not specified Not specified
ADP Red Hat Red Hat Developer Hub Not specified Not specified
ADP Red Hat Red Hat OpenShift AI RHOAI Not specified Not specified
ADP Red Hat Self-service Automation Portal 2 Not specified Not specified
ADP Red Hat Red Hat JBoss Enterprise Application Platform 8 Not specified Not specified
ADP Red Hat Red Hat JBoss Enterprise Application Platform Expansion Pack Not specified Not specified
ADP Red Hat Red Hat OpenShift Dev Spaces Not specified Not specified

References

ReferenceSourceLinkTags
access.redhat.com/errata/RHSA-2026:5807 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
cna.openjsf.org/security-advisories.html ce714d77-add3-4f53-aff5-83d477b104bb cna.openjsf.org Vendor Advisory
access.redhat.com/errata/RHSA-2026:7310 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:7675 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/security/cve/CVE-2026-2229 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
nodejs.org/api/zlib.html ce714d77-add3-4f53-aff5-83d477b104bb nodejs.org Technical Description
access.redhat.com/errata/RHSA-2026:34342 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:7123 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:9742 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:21931 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
datatracker.ietf.org/doc/html/rfc7692 ce714d77-add3-4f53-aff5-83d477b104bb datatracker.ietf.org Technical Description
access.redhat.com/errata/RHSA-2026:7983 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
bugzilla.redhat.com/show_bug.cgi 0b0ca135-0b70-47e7-9f44-1890c2a1c46c bugzilla.redhat.com
access.redhat.com/errata/RHSA-2026:7350 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:7302 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:13826 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:7670 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:21772 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-2229.json 0b0ca135-0b70-47e7-9f44-1890c2a1c46c security.access.redhat.com
hackerone.com/reports/3487486 ce714d77-add3-4f53-aff5-83d477b104bb hackerone.com Permissions Required
github.com/nodejs/undici/security/advisories/GHSA-v9p9-hfj2-hcw8 ce714d77-add3-4f53-aff5-83d477b104bb github.com Vendor Advisory
access.redhat.com/errata/RHSA-2026:17789 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:7080 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Matteo Collina (en)

CNA: Ulises Gascón (en)

CNA: Rafael Gonzaga (en)

CNA: Ethan Arrowood (en)

CNA: Aisle Research (en)

Additional Advisory Data

SourceTimeEvent
ADP2026-03-12T21:01:29.187ZReported to Red Hat.
ADP2026-03-12T20:27:05.600ZMade public.

Solutions

ADP: RHSA-2026:17789: Cryostat 4 on RHEL 9

ADP: RHSA-2026:7310: Red Hat Enterprise Linux AppStream EUS (v. 10.0)

ADP: RHSA-2026:7080: Red Hat Enterprise Linux AppStream (v. 10)

ADP: RHSA-2026:7675: Red Hat Enterprise Linux AppStream (v. 10)

ADP: RHSA-2026:7123: Red Hat Enterprise Linux AppStream (v. 8)

ADP: RHSA-2026:7670: Red Hat Enterprise Linux AppStream (v. 8)

ADP: RHSA-2026:7983: Red Hat Enterprise Linux AppStream EUS (v.9.6)

ADP: RHSA-2026:7302: Red Hat Enterprise Linux AppStream (v. 9)

ADP: RHSA-2026:7350: Red Hat Enterprise Linux AppStream (v. 9)

ADP: RHSA-2026:34342: Cluster Observability Operator 1.5.0

ADP: RHSA-2026:9742: Red Hat Developer Hub 1.8

ADP: RHSA-2026:13826: Red Hat Developer Hub 1.9

ADP: RHSA-2026:5807: Red Hat OpenShift AI 2.16

ADP: RHSA-2026:21772: Red Hat OpenShift Dev Spaces 3.28

ADP: RHSA-2026:21931: Red Hat OpenShift Pipelines 1.2

Workarounds

ADP: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report