7.5high
undici is vulnerable to Unbounded Memory Consumption in undici WebSocket permessage-deflate Decompression
- Severity
- 7.5high CVSS:3.1 by openjs
- Exploit likelihood
- 1.28% (higher than 70% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- openjs
- Also known as
- GHSA-vrm6-8vpv-qv8q
Description
The undici WebSocket client is vulnerable to a denial-of-service attack via unbounded memory consumption during permessage-deflate decompression. When a WebSocket connection negotiates the permessage-deflate extension, the client decompresses incoming compressed frames without enforcing any limit on the decompressed data size. A malicious WebSocket server can send a small compressed frame (a "decompression bomb") that expands to an extremely large size in memory, causing the Node.js process to exhaust available memory and crash or become unresponsive. The vulnerability exists in the PerMessageDeflate.decompress() method, which accumulates all decompressed chunks in memory and concatenates them into a single Buffer without checking whether the total size exceeds a safe threshold.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| undici | < 6.24.0; 7.0.0 < 7.24.0 Not affected: 6.24.0: 7.24.0 | CVE List |
| cryostat/cryostat-openshift-console-plugin-rhel9 | Not specified Not affected: from 4.2.0-9 before * | CVE List |
| cryostat/cryostat-rhel9 | Not specified Not affected: from 4.2.0-9 before * | CVE List |
| nodejs22 | Not specified Not affected: from 1:22.22.2-1.el10_1 before *, from 1:22.22.2-2.el10_0 before * | CVE List |
| nodejs24 | Not specified Not affected: from 1:24.14.1-2.el10_1 before * | CVE List |
| nodejs:22 | Not specified Not affected: from 8100020260331102257.6d880403 before *, from 9070020260401095228.rhel9 before *, from 9060020260409121057.rhel9 before * | CVE List |
| nodejs:24 | Not specified Not affected: from 8100020260408131901.6d880403 before *, from 9070020260402152654.rhel9 before * | CVE List |
| cluster-observability-operator/logging-console-plugin-pf4-rhel9 | Not specified Not affected: from 1782839279 before * | CVE List |
| cluster-observability-operator/logging-console-plugin-pf5-rhel9 | Not specified Not affected: from 1782840539 before * | CVE List |
| cluster-observability-operator/troubleshooting-panel-console-plugin-pf6-rhel9 | Not specified Not affected: from 1782839996 before * | CVE List |
| rhdh/rhdh-hub-rhel9 | Not specified Not affected: from 1776784286 before *, from 1777903262 before * | CVE List |
| rhoai/odh-dashboard-rhel8 | Not specified Not affected: from 1774282136 before * | CVE List |
| odf4/cephcsi-rhel9 | Not specified Not affected: from 1786705347 before * | CVE List |
| odf4/cephcsi-rhel9-operator | Not specified Not affected: from 1786706101 before * | CVE List |
| odf4/mcg-core-rhel9 | Not specified Not affected: from 1786705558 before * | CVE List |
| odf4/mcg-rhel9-operator | Not specified Not affected: from 1786705646 before * | CVE List |
| odf4/ocs-client-console-rhel9 | Not specified Not affected: from 1786706138 before * | CVE List |
| odf4/ocs-client-rhel9-operator | Not specified Not affected: from 1786705741 before * | CVE List |
| odf4/ocs-metrics-exporter-rhel9 | Not specified Not affected: from 1786705777 before * | CVE List |
| odf4/ocs-rhel9-operator | Not specified Not affected: from 1786705802 before * | CVE List |
| odf4/odf-cli-rhel9 | Not specified Not affected: from 1786705938 before * | CVE List |
| odf4/odf-console-rhel9 | Not specified Not affected: from 1786706577 before * | CVE List |
| odf4/odf-cosi-sidecar-rhel9 | Not specified Not affected: from 1786706125 before * | CVE List |
| odf4/odf-csi-addons-rhel9-operator | Not specified Not affected: from 1786706177 before * | CVE List |
| odf4/odf-csi-addons-sidecar-rhel9 | Not specified Not affected: from 1786706188 before * | CVE List |
| odf4/odf-multicluster-console-rhel9 | Not specified Not affected: from 1786706679 before * | CVE List |
| odf4/odf-multicluster-rhel9-operator | Not specified Not affected: from 1786706357 before * | CVE List |
| odf4/odf-must-gather-rhel9 | Not specified Not affected: from 1786706612 before * | CVE List |
| odf4/odf-rhel9-operator | Not specified Not affected: from 1786706644 before * | CVE List |
| odf4/odr-rhel9-operator | Not specified Not affected: from 1786706659 before * | CVE List |
| odf4/rook-ceph-rhel9-operator | Not specified Not affected: from 1786706880 before * | CVE List |
| devspaces/code-rhel9 | Not specified Not affected: from 1779814592 before * | CVE List |
| openshift-pipelines/pipelines-console-plugin-rhel9 | Not specified Not affected: from 1779910201 before * | CVE List |
| openshift-lightspeed/lightspeed-console-plugin-pf5-rhel9 | Not specified | CVE List |
| openshift-lightspeed/lightspeed-console-plugin-rhel9 | Not specified | CVE List |
| openshift-pipelines/pipelines-console-plugin-rhel8 | Not specified | CVE List |
| rhdh/backstage-community-plugin-catalog-backend-module-scaffolder-relation-processor | Not specified | CVE List |
| org.keycloak-keycloak-parent | Not specified | CVE List |
| rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-pipeline-runtime-minimal-cpu-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9 | Not specified | CVE List |
| devspaces/code-sshd-rhel9 | Not specified | CVE List |
| devspaces/openvsx-rhel9 | Not specified | CVE List |
| ansible-automation-platform/automation-portal | Not specified | CVE List |
| undici (npm) | before 6.24.0, from 7.0.0 before 7.24.0 | GitHub Advisory Database |
| nodejs undici | before 6.24.0, from 7.0.0 before 7.24.0 | NVD |
All scores
| openjs | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| redhat-SADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
The undici WebSocket client is vulnerable to a denial-of-service attack via unbounded memory consumption during permessage-deflate decompression. When a WebSocket connection negotiates the permessage-deflate extension, the client decompresses incoming compressed frames without enforcing any limit on the decompressed data size. A malicious WebSocket server can send a small compressed frame (a "decompression bomb") that expands to an extremely large size in memory, causing the Node.js process to exhaust available memory and crash or become unresponsive. The vulnerability exists in the PerMessageDeflate.decompress() method, which accumulates all decompressed chunks in memory and concatenates them into a single Buffer without checking whether the total size exceeds a safe threshold.
GitHub Advisory Database
Description
The undici WebSocket client is vulnerable to a denial-of-service attack via unbounded memory consumption during permessage-deflate decompression. When a WebSocket connection negotiates the permessage-deflate extension, the client decompresses incoming compressed frames without enforcing any limit on the decompressed data size. A malicious WebSocket server can send a small compressed frame (a "decompression bomb") that expands to an extremely large size in memory, causing the Node.js process to exhaust available memory and crash or become unresponsive.
The vulnerability exists in the PerMessageDeflate.decompress() method, which accumulates all decompressed chunks in memory and concatenates them into a single Buffer without checking whether the total size exceeds a safe threshold.
Impact
- Remote denial of service against any Node.js application using undici's WebSocket client
- A single compressed WebSocket frame of ~6 MB can decompress to ~1 GB or more
- Memory exhaustion occurs in native/external memory, bypassing V8 heap limits
- No application-level mitigation is possible as decompression occurs before message delivery
Patches
Users should upgrade to fixed versions.
Workarounds
No workaround are possible.
NVD (es)
El cliente WebSocket undici es vulnerable a un ataque de denegación de servicio a través de un consumo de memoria ilimitado durante la descompresión permessage-deflate. Cuando una conexión WebSocket negocia la extensión permessage-deflate, el cliente descomprime las tramas comprimidas entrantes sin imponer ningún límite en el tamaño de los datos descomprimidos. Un servidor WebSocket malicioso puede enviar una pequeña trama comprimida (una 'bomba de descompresión') que se expande a un tamaño extremadamente grande en memoria, causando que el proceso de Node.js agote la memoria disponible y colapse o deje de responder. La vulnerabilidad existe en el método PerMessageDeflate.decompress(), que acumula todos los fragmentos descomprimidos en memoria y los concatena en un único Buffer sin verificar si el tamaño total excede un umbral seguro.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-1526 changed 2026-09-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vrm6-8vpv-qv8q changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-1526 changed 2026-09-04 | Public domain |