{"id":"CVE-2021-32640","aliases":["AZL-44670","CLSA-2026-1785380875","DEBIAN-CVE-2021-32640","GHSA-6fc8-4gx4-v693","UBUNTU-CVE-2021-32640","WID-SEC-W-2026-2948"],"summary":"ReDoS in Sec-Websocket-Protocol header","published_at":"2021-05-25T00:00:00Z","modified_at":"2026-11-19T05:24:34Z","products":[{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"medium","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Low","vendor_ratings":[{"source":"BSI","rating":"mittel"},{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Low"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.028209999203681946,"percentile":0.8687099814414978,"date":"2026-11-19T00:00:00Z"},"priority":7.3,"details":"ws is an open source WebSocket client and server library for Node.js. A specially crafted value of the `Sec-Websocket-Protocol` header can be used to significantly slow down a ws server. The vulnerability has been fixed in ws@7.4.6 (https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff). In vulnerable versions of ws, the issue can be mitigated by reducing the maximum allowed length of the request headers using the [`--max-http-header-size=size`](https://nodejs.org/api/cli.html#cli_max_http_header_size_size) and/or the [`maxHeaderSize`](https://nodejs.org/api/http.html#http_http_createserver_options_requestlistener) options.","affected_stack":[{"ecosystem":"Red Hat:acm:2","package":"mcm-topology","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-32640","relation":"self"},{"ecosystem":"Red Hat:acm:2","package":"mcm-topology-api","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-32640","relation":"self"},{"ecosystem":"Red Hat:ansible_automation_platform","package":"ws","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-32640","relation":"self"},{"ecosystem":"Red Hat:service_mesh:2.0","package":"servicemesh-grafana","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-32640","relation":"self"},{"ecosystem":"Red Hat:service_mesh:2.0","package":"servicemesh-grafana-prometheus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-32640","relation":"self"},{"ecosystem":"Red Hat:service_mesh:2.0","package":"servicemesh-prometheus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-32640","relation":"self"}],"affected_other":[{"ecosystem":"Azure Linux:3","package":"js-jquery","purl":"pkg:rpm/azure-linux/js-jquery","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.5.0-4"}]}],"provider":"osv","source":"AZL-44670","relation":"self"},{"ecosystem":"CVE","package":"websockets/ws","versions":[">= 5.0.0 <= 7.4.5"],"provider":"cvelistv5","source":"CVE-2021-32640","relation":"self"},{"ecosystem":"Debian:12","package":"node-ws","purl":"pkg:deb/debian/node-ws?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.4.2+~cs18.0.8-2"}]}],"fixed":["7.4.2+~cs18.0.8-2"],"provider":"osv","source":"DEBIAN-CVE-2021-32640","relation":"self"},{"ecosystem":"Debian:13","package":"node-ws","purl":"pkg:deb/debian/node-ws?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.4.2+~cs18.0.8-2"}]}],"fixed":["7.4.2+~cs18.0.8-2"],"provider":"osv","source":"DEBIAN-CVE-2021-32640","relation":"self"},{"ecosystem":"Debian:14","package":"node-ws","purl":"pkg:deb/debian/node-ws?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.4.2+~cs18.0.8-2"}]}],"fixed":["7.4.2+~cs18.0.8-2"],"provider":"osv","source":"DEBIAN-CVE-2021-32640","relation":"self"},{"ecosystem":"NVD","package":"ws_project:ws","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"6.2.2"}]},{"type":"ECOSYSTEM","events":[{"introduced":"7.0.0"},{"fixed":"7.4.6"}]}],"fixed":["6.2.2","7.4.6"],"provider":"nvd","source":"CVE-2021-32640","relation":"self"},{"ecosystem":"TuxCare:npm","package":"ws","purl":"pkg:npm/ws","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.2.1-tuxcare.0"},{"fixed":"6.2.1-tuxcare.2"}]}],"versions":["6.2.1","6.2.1-tuxcare.1"],"fixed":["6.2.1-tuxcare.2"],"provider":"osv","source":"CLSA-2026-1785380875","relation":"self"},{"ecosystem":"TuxCare:npm","package":"ws","purl":"pkg:npm/ws","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.4.5-tuxcare.0"},{"fixed":"7.4.5-tuxcare.1"}]}],"versions":["7.4.5"],"fixed":["7.4.5-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1788560420","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"ws","purl":"pkg:npm/ws","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0.0-tuxcare.0"},{"fixed":"6.0.0-tuxcare.1"}]}],"versions":["6.0.0"],"fixed":["6.0.0-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1788560439","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"ws","purl":"pkg:npm/ws","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.4.3-tuxcare.0"},{"fixed":"7.4.3-tuxcare.1"}]}],"versions":["7.4.3"],"fixed":["7.4.3-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1792164186","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"ws","purl":"pkg:npm/ws","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.4.0-tuxcare.0"},{"fixed":"7.4.0-tuxcare.1"}]}],"versions":["7.4.0"],"fixed":["7.4.0-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1792443025","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"ws","purl":"pkg:npm/ws","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.1.4-tuxcare.0"},{"fixed":"6.1.4-tuxcare.1"}]}],"versions":["6.1.4"],"fixed":["6.1.4-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1793112519","relation":"upstream"},{"ecosystem":"Ubuntu:16.04:LTS","package":"node-ws","purl":"pkg:deb/ubuntu/node-ws@1.0.1+ds1.e6ddaae4-1?arch=source&distro=xenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.2+ds1.349b7460-1","1.0.1+ds1.e6ddaae4-1"],"provider":"osv","source":"UBUNTU-CVE-2021-32640","relation":"self"},{"ecosystem":"Ubuntu:18.04:LTS","package":"node-ws","purl":"pkg:deb/ubuntu/node-ws@1.1.0+ds1.e6ddaae4-3ubuntu1?arch=source&distro=bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.0+ds1.e6ddaae4-3build1","1.1.0+ds1.e6ddaae4-3ubuntu1"],"provider":"osv","source":"UBUNTU-CVE-2021-32640","relation":"self"},{"ecosystem":"Ubuntu:20.04:LTS","package":"node-ws","purl":"pkg:deb/ubuntu/node-ws@7.2.1-3?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.0+ds1.e6ddaae4-5","7.2.1-2","7.2.1-3"],"provider":"osv","source":"UBUNTU-CVE-2021-32640","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"node-ws","purl":"pkg:deb/ubuntu/node-ws@8.5.0+~cs13.3.3-2?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.4.2+~cs18.0.8-2","7.5.5+~cs13.0.13-1","8.5.0+~cs13.3.3-2"],"provider":"osv","source":"UBUNTU-CVE-2021-32640","relation":"self"},{"ecosystem":"npm","package":"ws","purl":"pkg:npm/ws","ranges":[{"type":"SEMVER","events":[{"introduced":"7.0.0"},{"fixed":"7.4.6"}]}],"fixed":["7.4.6"],"provider":"osv","source":"GHSA-6fc8-4gx4-v693","relation":"self"},{"ecosystem":"npm","package":"ws","purl":"pkg:npm/ws","ranges":[{"type":"SEMVER","events":[{"introduced":"5.0.0"},{"fixed":"5.2.3"}]}],"fixed":["5.2.3"],"provider":"osv","source":"GHSA-6fc8-4gx4-v693","relation":"self"},{"ecosystem":"npm","package":"ws","purl":"pkg:npm/ws","ranges":[{"type":"SEMVER","events":[{"introduced":"6.0.0"},{"fixed":"6.2.2"}]}],"fixed":["6.2.2"],"provider":"osv","source":"GHSA-6fc8-4gx4-v693","relation":"self"}],"product_status":[{"vendor":"BSI","product":"HCL BigFix AEX <13.0.1.1","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2026-2948"},{"vendor":"Red Hat","product":"OpenShift Service Mesh 2.0","cpe":"cpe:/a:redhat:service_mesh:2.0","status":"affected","packages":["servicemesh-grafana","servicemesh-grafana-prometheus","servicemesh-prometheus"],"package_count":3,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2021-32640"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["mcm-topology","mcm-topology-api","rhacm2/application-ui-rhel8","rhacm2/console-api-rhel8","rhacm2/console-header-rhel8","rhacm2/console-rhel8","rhacm2/console-ui-rhel8","rhacm2/grc-ui-api-rhel8","rhacm2/grc-ui-rhel8","rhacm2/kui-web-terminal-rhel8","rhacm2/search-api-rhel8","rhacm2/search-ui-rhel8"],"package_count":12,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2021-32640"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 1.2","cpe":"cpe:/a:redhat:ansible_automation_platform","status":"affected","packages":["ws"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2021-32640"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"affected","packages":["openshift4/ose-console","openshift4/ose-grafana","openshift4/ose-prometheus-rhel9","openshift4/ose-thanos-rhel9"],"package_count":4,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2021-32640"},{"vendor":"Red Hat","product":"Red Hat Openshift Container Storage 4","cpe":"cpe:/a:redhat:openshift_container_storage:4","status":"affected","packages":["ocs4/mcg-core-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2021-32640"}],"records":[{"provider":"osv","source_id":"CLSA-2026-1788560420","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1788560420","published_at":"2026-09-04T22:20:20Z","modified_at":"2026-10-15T09:48:03.167376Z","summary":"TuxCare security update for ws (3 CVEs)","details":"TuxCare rebuilt ws to address 3 CVEs. Fixed in 7.4.5-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"ws","purl":"pkg:npm/ws","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.4.5-tuxcare.0"},{"fixed":"7.4.5-tuxcare.1"}]}],"versions":["7.4.5"],"fixed":["7.4.5-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1788560420","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1788560439","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1788560439","published_at":"2026-09-04T22:20:39Z","modified_at":"2026-10-15T09:48:03.103525Z","summary":"TuxCare security update for ws (3 CVEs)","details":"TuxCare rebuilt ws to address 3 CVEs. Fixed in 6.0.0-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"ws","purl":"pkg:npm/ws","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0.0-tuxcare.0"},{"fixed":"6.0.0-tuxcare.1"}]}],"versions":["6.0.0"],"fixed":["6.0.0-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1788560439","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1792164186","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1792164186","published_at":"2026-10-16T15:23:06Z","modified_at":"2026-10-16T16:32:00.36519Z","summary":"TuxCare security update for ws (3 CVEs)","details":"TuxCare rebuilt ws to address 3 CVEs. Fixed in 7.4.3-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"ws","purl":"pkg:npm/ws","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.4.3-tuxcare.0"},{"fixed":"7.4.3-tuxcare.1"}]}],"versions":["7.4.3"],"fixed":["7.4.3-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1792164186","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1792443025","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1792443025","published_at":"2026-10-19T20:50:25Z","modified_at":"2026-10-20T01:45:11.700371Z","summary":"TuxCare security update for ws (3 CVEs)","details":"TuxCare rebuilt ws to address 3 CVEs. Fixed in 7.4.0-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"ws","purl":"pkg:npm/ws","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.4.0-tuxcare.0"},{"fixed":"7.4.0-tuxcare.1"}]}],"versions":["7.4.0"],"fixed":["7.4.0-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1792443025","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1793112519","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1793112519","published_at":"2026-10-27T14:48:39Z","modified_at":"2026-10-27T19:30:02.389047Z","summary":"TuxCare security update for ws (3 CVEs)","details":"TuxCare rebuilt ws to address 3 CVEs. Fixed in 6.1.4-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"ws","purl":"pkg:npm/ws","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.1.4-tuxcare.0"},{"fixed":"6.1.4-tuxcare.1"}]}],"versions":["6.1.4"],"fixed":["6.1.4-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1793112519","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2021-32640","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2021-32640","license":"CC-BY-4.0","published_at":"2021-05-25T18:25:09Z","modified_at":"2024-08-03T23:25:31.019Z","summary":"ReDoS in Sec-Websocket-Protocol header","details":"ws is an open source WebSocket client and server library for Node.js. A specially crafted value of the `Sec-Websocket-Protocol` header can be used to significantly slow down a ws server. The vulnerability has been fixed in ws@7.4.6 (https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff). In vulnerable versions of ws, the issue can be mitigated by reducing the maximum allowed length of the request headers using the [`--max-http-header-size=size`](https://nodejs.org/api/cli.html#cli_max_http_header_size_size) and/or the [`maxHeaderSize`](https://nodejs.org/api/http.html#http_http_createserver_options_requestlistener) options.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"CVE-2021-32640"}],"affected":[{"ecosystem":"CVE","package":"websockets/ws","versions":[">= 5.0.0 <= 7.4.5"],"provider":"cvelistv5","source":"CVE-2021-32640","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/websockets/ws/security/advisories/GHSA-6fc8-4gx4-v693"},{"type":"WEB","url":"https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff"},{"type":"WEB","url":"https://lists.apache.org/thread.html/rdfa7b6253c4d6271e31566ecd5f30b7ce1b8fb2c89d52b8c4e0f4e30%40%3Ccommits.tinkerpop.apache.org%3E"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20210706-0005/"}]},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-2948","relation":"self","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-2948","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-08-20T22:00:00Z","modified_at":"2026-08-20T22:00:00Z","summary":"HCL BigFix AEX: Schwachstelle ermöglicht Denial of Service","details":"Ein entfernter, anonymer Angreifer kann eine Schwachstelle in HCL BigFix AEX ausnutzen, um einen Denial of Service Angriff durchzuführen.\n\nBigFix ist eine Lösung zum Erkennen und Verwalten von physischen und virtuellen Endpunkten.","severity":[{"type":"BSI","score":"mittel","source":"WID-SEC-W-2026-2948"}],"affected":[],"product_status":[{"vendor":"BSI","product":"HCL BigFix AEX <13.0.1.1","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2026-2948"}],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2948.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-2948"},{"type":"WEB","url":"https://support.hcl-software.com/csm?id=kb_article&sysparm_article=KB0133273"},{"type":"WEB","url":"https://support.hcl-software.com/community?id=community_blog&sys_id=c3898c022bba0f900c64f1a1d891bfec"}]},{"provider":"nvd","source_id":"CVE-2021-32640","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32640","severity":[],"affected":[{"ecosystem":"NVD","package":"ws_project:ws","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"6.2.2"}]},{"type":"ECOSYSTEM","events":[{"introduced":"7.0.0"},{"fixed":"7.4.6"}]}],"fixed":["6.2.2","7.4.6"],"provider":"nvd","source":"CVE-2021-32640","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"AZL-44670","relation":"self","url":"https://osv.dev/vulnerability/AZL-44670","license":"MIT","published_at":"2021-05-25T19:15:07Z","modified_at":"2026-11-19T05:24:34Z","summary":"CVE-2021-32640 affecting package js-jquery 3.5.0-4","details":"ws is an open source WebSocket client and server library for Node.js. A specially crafted value of the `Sec-Websocket-Protocol` header can be used to significantly slow down a ws server. The vulnerability has been fixed in ws@7.4.6 (https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff). In vulnerable versions of ws, the issue can be mitigated by reducing the maximum allowed length of the request headers using the [`--max-http-header-size=size`](https://nodejs.org/api/cli.html#cli_max_http_header_size_size) and/or the [`maxHeaderSize`](https://nodejs.org/api/http.html#http_http_createserver_options_requestlistener) options.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"AZL-44670"}],"affected":[{"ecosystem":"Azure Linux:3","package":"js-jquery","purl":"pkg:rpm/azure-linux/js-jquery","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.5.0-4"}]}],"provider":"osv","source":"AZL-44670","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32640"}]},{"provider":"osv","source_id":"CLSA-2026-1785380875","relation":"self","url":"https://osv.dev/vulnerability/CLSA-2026-1785380875","published_at":"2026-08-04T14:52:50Z","modified_at":"2026-10-15T09:47:37.374176Z","summary":"TuxCare security update for ws (1 CVE)","details":"TuxCare rebuilt ws to address 1 CVE. Fixed in 6.2.1-tuxcare.2.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"ws","purl":"pkg:npm/ws","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.2.1-tuxcare.0"},{"fixed":"6.2.1-tuxcare.2"}]}],"versions":["6.2.1","6.2.1-tuxcare.1"],"fixed":["6.2.1-tuxcare.2"],"provider":"osv","source":"CLSA-2026-1785380875","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2021-32640","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2021-32640","published_at":"2021-05-25T19:15:07.767Z","modified_at":"2026-10-23T18:03:03.601059Z","details":"ws is an open source WebSocket client and server library for Node.js. A specially crafted value of the `Sec-Websocket-Protocol` header can be used to significantly slow down a ws server. The vulnerability has been fixed in ws@7.4.6 (https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff). In vulnerable versions of ws, the issue can be mitigated by reducing the maximum allowed length of the request headers using the [`--max-http-header-size=size`](https://nodejs.org/api/cli.html#cli_max_http_header_size_size) and/or the [`maxHeaderSize`](https://nodejs.org/api/http.html#http_http_createserver_options_requestlistener) options.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"DEBIAN-CVE-2021-32640"}],"affected":[{"ecosystem":"Debian:12","package":"node-ws","purl":"pkg:deb/debian/node-ws?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.4.2+~cs18.0.8-2"}]}],"fixed":["7.4.2+~cs18.0.8-2"],"provider":"osv","source":"DEBIAN-CVE-2021-32640","relation":"self"},{"ecosystem":"Debian:13","package":"node-ws","purl":"pkg:deb/debian/node-ws?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.4.2+~cs18.0.8-2"}]}],"fixed":["7.4.2+~cs18.0.8-2"],"provider":"osv","source":"DEBIAN-CVE-2021-32640","relation":"self"},{"ecosystem":"Debian:14","package":"node-ws","purl":"pkg:deb/debian/node-ws?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.4.2+~cs18.0.8-2"}]}],"fixed":["7.4.2+~cs18.0.8-2"],"provider":"osv","source":"DEBIAN-CVE-2021-32640","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2021-32640"}]},{"provider":"osv","source_id":"GHSA-6fc8-4gx4-v693","relation":"self","url":"https://osv.dev/vulnerability/GHSA-6fc8-4gx4-v693","license":"CC-BY-4.0","published_at":"2021-05-28T19:19:03Z","modified_at":"2026-07-08T06:28:00.103808Z","summary":"ReDoS in Sec-Websocket-Protocol header","details":"### Impact\n\nA specially crafted value of the `Sec-Websocket-Protocol` header can be used to significantly slow down a ws server.\n\n### Proof of concept\n\n```js\nfor (const length of [1000, 2000, 4000, 8000, 16000, 32000]) {\n  const value = 'b' + ' '.repeat(length) + 'x';\n  const start = process.hrtime.bigint();\n\n  value.trim().split(/ *, */);\n\n  const end = process.hrtime.bigint();\n\n  console.log('length = %d, time = %f ns', length, end - start);\n}\n```\n\n### Patches\n\nThe vulnerability was fixed in ws@7.4.6 (https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff) and backported to ws@6.2.2 (https://github.com/websockets/ws/commit/78c676d2a1acefbc05292e9f7ea0a9457704bf1b) and ws@5.2.3 (https://github.com/websockets/ws/commit/76d47c1479002022a3e4357b3c9f0e23a68d4cd2).\n\n### Workarounds\n\nIn vulnerable versions of ws, the issue can be mitigated by reducing the maximum allowed length of the request headers using the [`--max-http-header-size=size`](https://nodejs.org/api/cli.html#cli_max_http_header_size_size) and/or the [`maxHeaderSize`](https://nodejs.org/api/http.html#http_http_createserver_options_requestlistener) options.\n\n### Credits\n\nThe vulnerability was responsibly disclosed along with a fix in private by [Robert McLaughlin](https://github.com/robmcl4) from University of California, Santa Barbara.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"GHSA-6fc8-4gx4-v693"}],"affected":[{"ecosystem":"npm","package":"ws","purl":"pkg:npm/ws","ranges":[{"type":"SEMVER","events":[{"introduced":"7.0.0"},{"fixed":"7.4.6"}]}],"fixed":["7.4.6"],"provider":"osv","source":"GHSA-6fc8-4gx4-v693","relation":"self"},{"ecosystem":"npm","package":"ws","purl":"pkg:npm/ws","ranges":[{"type":"SEMVER","events":[{"introduced":"5.0.0"},{"fixed":"5.2.3"}]}],"fixed":["5.2.3"],"provider":"osv","source":"GHSA-6fc8-4gx4-v693","relation":"self"},{"ecosystem":"npm","package":"ws","purl":"pkg:npm/ws","ranges":[{"type":"SEMVER","events":[{"introduced":"6.0.0"},{"fixed":"6.2.2"}]}],"fixed":["6.2.2"],"provider":"osv","source":"GHSA-6fc8-4gx4-v693","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/websockets/ws/security/advisories/GHSA-6fc8-4gx4-v693"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32640"},{"type":"WEB","url":"https://github.com/websockets/ws/issues/1895"},{"type":"WEB","url":"https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff"},{"type":"PACKAGE","url":"https://github.com/websockets/ws"},{"type":"WEB","url":"https://lists.apache.org/thread.html/rdfa7b6253c4d6271e31566ecd5f30b7ce1b8fb2c89d52b8c4e0f4e30@%3Ccommits.tinkerpop.apache.org%3E"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20210706-0005"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2021-32640","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2021-32640","license":"CC-BY-SA-4.0","published_at":"2021-05-25T19:15:00Z","modified_at":"2025-10-24T04:50:20Z","details":"ws is an open source WebSocket client and server library for Node.js. A specially crafted value of the `Sec-Websocket-Protocol` header can be used to significantly slow down a ws server. The vulnerability has been fixed in ws@7.4.6 (https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff). In vulnerable versions of ws, the issue can be mitigated by reducing the maximum allowed length of the request headers using the [`--max-http-header-size=size`](https://nodejs.org/api/cli.html#cli_max_http_header_size_size) and/or the [`maxHeaderSize`](https://nodejs.org/api/http.html#http_http_createserver_options_requestlistener) options.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"UBUNTU-CVE-2021-32640"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2021-32640"}],"affected":[{"ecosystem":"Ubuntu:16.04:LTS","package":"node-ws","purl":"pkg:deb/ubuntu/node-ws@1.0.1+ds1.e6ddaae4-1?arch=source&distro=xenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.2+ds1.349b7460-1","1.0.1+ds1.e6ddaae4-1"],"provider":"osv","source":"UBUNTU-CVE-2021-32640","relation":"self"},{"ecosystem":"Ubuntu:18.04:LTS","package":"node-ws","purl":"pkg:deb/ubuntu/node-ws@1.1.0+ds1.e6ddaae4-3ubuntu1?arch=source&distro=bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.0+ds1.e6ddaae4-3build1","1.1.0+ds1.e6ddaae4-3ubuntu1"],"provider":"osv","source":"UBUNTU-CVE-2021-32640","relation":"self"},{"ecosystem":"Ubuntu:20.04:LTS","package":"node-ws","purl":"pkg:deb/ubuntu/node-ws@7.2.1-3?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.0+ds1.e6ddaae4-5","7.2.1-2","7.2.1-3"],"provider":"osv","source":"UBUNTU-CVE-2021-32640","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"node-ws","purl":"pkg:deb/ubuntu/node-ws@8.5.0+~cs13.3.3-2?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.4.2+~cs18.0.8-2","7.5.5+~cs13.0.13-1","8.5.0+~cs13.3.3-2"],"provider":"osv","source":"UBUNTU-CVE-2021-32640","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-32640"},{"type":"REPORT","url":"https://github.com/websockets/ws/security/advisories/GHSA-6fc8-4gx4-v693"},{"type":"REPORT","url":"https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-32640"}]},{"provider":"redhat-vex","source_id":"CVE-2021-32640","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2021-32640","license":"CC-BY-4.0","published_at":"2021-05-25T00:00:00Z","modified_at":"2023-10-25T17:21:56Z","summary":"nodejs-ws: Specially crafted value of the `Sec-Websocket-Protocol` header can be used to significantly slow down a ws server","details":"A flaw was found in nodejs-ws. A specially crafted value of the `Sec-Websocket-Protocol` header can be used to significantly slow down a ws server.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"CVE-2021-32640"},{"type":"Red Hat","score":"Low","source":"CVE-2021-32640"}],"affected":[{"ecosystem":"Red Hat:acm:2","package":"mcm-topology","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-32640","relation":"self"},{"ecosystem":"Red Hat:acm:2","package":"mcm-topology-api","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-32640","relation":"self"},{"ecosystem":"Red Hat:ansible_automation_platform","package":"ws","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-32640","relation":"self"},{"ecosystem":"Red Hat:service_mesh:2.0","package":"servicemesh-grafana","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-32640","relation":"self"},{"ecosystem":"Red Hat:service_mesh:2.0","package":"servicemesh-grafana-prometheus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-32640","relation":"self"},{"ecosystem":"Red Hat:service_mesh:2.0","package":"servicemesh-prometheus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-32640","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"OpenShift Service Mesh 2.0","cpe":"cpe:/a:redhat:service_mesh:2.0","status":"affected","packages":["servicemesh-grafana","servicemesh-grafana-prometheus","servicemesh-prometheus"],"package_count":3,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2021-32640"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["mcm-topology","mcm-topology-api","rhacm2/application-ui-rhel8","rhacm2/console-api-rhel8","rhacm2/console-header-rhel8","rhacm2/console-rhel8","rhacm2/console-ui-rhel8","rhacm2/grc-ui-api-rhel8","rhacm2/grc-ui-rhel8","rhacm2/kui-web-terminal-rhel8","rhacm2/search-api-rhel8","rhacm2/search-ui-rhel8"],"package_count":12,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2021-32640"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 1.2","cpe":"cpe:/a:redhat:ansible_automation_platform","status":"affected","packages":["ws"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2021-32640"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"affected","packages":["openshift4/ose-console","openshift4/ose-grafana","openshift4/ose-prometheus-rhel9","openshift4/ose-thanos-rhel9"],"package_count":4,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2021-32640"},{"vendor":"Red Hat","product":"Red Hat Openshift Container Storage 4","cpe":"cpe:/a:redhat:openshift_container_storage:4","status":"affected","packages":["ocs4/mcg-core-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2021-32640"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-32640.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-32640"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1965488"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-32640"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32640"},{"type":"WEB","url":"https://github.com/websockets/ws/security/advisories/GHSA-6fc8-4gx4-v693"}]}],"references":[{"type":"WEB","url":"https://github.com/websockets/ws/security/advisories/GHSA-6fc8-4gx4-v693"},{"type":"WEB","url":"https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff"},{"type":"WEB","url":"https://lists.apache.org/thread.html/rdfa7b6253c4d6271e31566ecd5f30b7ce1b8fb2c89d52b8c4e0f4e30%40%3Ccommits.tinkerpop.apache.org%3E"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20210706-0005/"},{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2948.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-2948"},{"type":"WEB","url":"https://support.hcl-software.com/csm?id=kb_article&sysparm_article=KB0133273"},{"type":"WEB","url":"https://support.hcl-software.com/community?id=community_blog&sys_id=c3898c022bba0f900c64f1a1d891bfec"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32640"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2021-32640"},{"type":"WEB","url":"https://github.com/websockets/ws/issues/1895"},{"type":"PACKAGE","url":"https://github.com/websockets/ws"},{"type":"WEB","url":"https://lists.apache.org/thread.html/rdfa7b6253c4d6271e31566ecd5f30b7ce1b8fb2c89d52b8c4e0f4e30@%3Ccommits.tinkerpop.apache.org%3E"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20210706-0005"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-32640"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-32640"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-32640.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-32640"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1965488"}],"sources":[{"provider":"osv","source_id":"CLSA-2026-1788560420","url":"https://osv.dev/vulnerability/CLSA-2026-1788560420","modified_at":"2026-10-15T09:48:03.167376Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1788560439","url":"https://osv.dev/vulnerability/CLSA-2026-1788560439","modified_at":"2026-10-15T09:48:03.103525Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1792164186","url":"https://osv.dev/vulnerability/CLSA-2026-1792164186","modified_at":"2026-10-16T16:32:00.36519Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1792443025","url":"https://osv.dev/vulnerability/CLSA-2026-1792443025","modified_at":"2026-10-20T01:45:11.700371Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1793112519","url":"https://osv.dev/vulnerability/CLSA-2026-1793112519","modified_at":"2026-10-27T19:30:02.389047Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2021-32640","url":"https://www.cve.org/CVERecord?id=CVE-2021-32640","license":"CC-BY-4.0","modified_at":"2024-08-03T23:25:31.019Z","relation":"self"},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-2948","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-2948","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-08-20T22:00:00Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2021-32640","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32640","relation":"self"},{"provider":"osv","source_id":"AZL-44670","url":"https://osv.dev/vulnerability/AZL-44670","license":"MIT","modified_at":"2026-11-19T05:24:34Z","relation":"self"},{"provider":"osv","source_id":"CLSA-2026-1785380875","url":"https://osv.dev/vulnerability/CLSA-2026-1785380875","modified_at":"2026-10-15T09:47:37.374176Z","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2021-32640","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2021-32640","modified_at":"2026-10-23T18:03:03.601059Z","relation":"self"},{"provider":"osv","source_id":"GHSA-6fc8-4gx4-v693","url":"https://osv.dev/vulnerability/GHSA-6fc8-4gx4-v693","license":"CC-BY-4.0","modified_at":"2026-07-08T06:28:00.103808Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2021-32640","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2021-32640","license":"CC-BY-SA-4.0","modified_at":"2025-10-24T04:50:20Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2021-32640","url":"https://access.redhat.com/security/cve/CVE-2021-32640","license":"CC-BY-4.0","modified_at":"2023-10-25T17:21:56Z","relation":"self"}]}
