{"id":"EUVD-2021-0968","revision":null,"records":[{"revision":"2bf03745dcab4929a3ea4668153f4597","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2021-32640","aliases":[],"title":"ReDoS in Sec-Websocket-Protocol header","description":"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.","state":0,"publishedAt":"2021-05-25T18:25:09+00:00","modifiedAt":"2024-08-03T23:25:31.019+00:00","affected":[{"ecosystem":"Vendor product","name":"ws","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"ws\",\n                    \"vendor\": \"websockets\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \">= 5.0.0 <= 7.4.5\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"severity":"MEDIUM"}],"references":["https://github.com/websockets/ws/security/advisories/GHSA-6fc8-4gx4-v693","https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff","https://lists.apache.org/thread.html/rdfa7b6253c4d6271e31566ecd5f30b7ce1b8fb2c89d52b8c4e0f4e30%40%3Ccommits.tinkerpop.apache.org%3E","https://security.netapp.com/advisory/ntap-20210706-0005/"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2021-32640","license":"CVE Program Terms of Use","key":"cve-program:CVE-2021-32640","identifiers":["CVE-2021-32640"]},"retained":false,"historicalAffected":[]},{"revision":"84db1736acc9442583670ab2b7406fe3","observedAt":"2026-11-24T03:35:16.041+00:00","statement":{"source":"euvd","id":"EUVD-2021-0968","aliases":["CVE-2021-32640","GHSA-6fc8-4gx4-v693"],"title":"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:/…","description":"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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"severity":null}],"references":["https://github.com/websockets/ws/security/advisories/GHSA-6fc8-4gx4-v693","https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff","https://lists.apache.org/thread.html/rdfa7b6253c4d6271e31566ecd5f30b7ce1b8fb2c89d52b8c4e0f4e30%40%3Ccommits.tinkerpop.apache.org%3E","https://security.netapp.com/advisory/ntap-20210706-0005/"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-0968","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"May 25, 2021, 6:25:09 PM","dateUpdated":"Aug 3, 2024, 11:25:31 PM"},"relatedAdvisories":[{"id":"WID-SEC-W-2026-2948","title":"HCL BigFix AEX: Schwachstelle ermöglicht Denial of Service","vulnerabilityIds":["CVE-2021-32640"]},{"id":"RHSA-2026:100741","title":"Red Hat Security Advisory: Red Hat OpenShift Data Foundation 5.0.0 security, enhancement & bug fix update","vulnerabilityIds":["CVE-2017-16137","CVE-2020-7598","CVE-2020-7608","CVE-2020-7610","CVE-2020-7788","CVE-2020-8203","CVE-2020-8237","CVE-2020-15168","CVE-2020-15366","CVE-2020-28500","CVE-2021-3807","CVE-2021-23337","CVE-2021-23343","CVE-2021-32640","CVE-2021-32804","CVE-2021-37701","CVE-2021-37712","CVE-2021-37713","CVE-2021-43138","CVE-2021-44906","CVE-2022-0235","CVE-2022-3517","CVE-2022-23539","CVE-2022-23540","CVE-2022-23541","CVE-2022-24785","CVE-2022-24999","CVE-2022-25883","CVE-2022-31129","CVE-2023-0842","CVE-2023-45133","CVE-2024-21538","CVE-2024-28863","CVE-2024-29041","CVE-2024-37890","CVE-2024-43796","CVE-2024-43799","CVE-2024-43800","CVE-2024-45296","CVE-2024-45590","CVE-2024-47764","CVE-2024-52798","CVE-2025-5889","CVE-2025-7339","CVE-2025-7783","CVE-2025-8766","CVE-2025-13465","CVE-2025-64718","CVE-2025-65945","CVE-2025-69873","CVE-2026-2391","CVE-2026-2950","CVE-2026-4800","CVE-2026-4867","CVE-2026-12143","CVE-2026-12590","CVE-2026-13149","CVE-2026-23745","CVE-2026-23950","CVE-2026-24842","CVE-2026-26960","CVE-2026-26996","CVE-2026-27903","CVE-2026-27904","CVE-2026-29786","CVE-2026-31802","CVE-2026-33532","CVE-2026-33750","CVE-2026-48779","CVE-2026-53550","CVE-2026-53655","CVE-2026-56851","CVE-2026-59869","CVE-2026-59871","CVE-2026-59873","CVE-2026-59874","CVE-2026-59875","CVE-2026-61801","CVE-2026-69152","CVE-2026-73566","CVE-2026-82417","CVE-2026-84304","CVE-2026-84375","CVE-2026-87776","CVE-2026-90711","CVE-2026-102276","CVE-2026-102277","CVE-2026-102278"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2021-0968","identifiers":["EUVD-2021-0968","CVE-2021-32640","GHSA-6fc8-4gx4-v693"]},"retained":false,"historicalAffected":[]},{"revision":"141a441a31f24e9baefe456e0c6de1f6","observedAt":"2026-10-24T18:17:28.628+00:00","statement":{"source":"nvd","id":"CVE-2021-32640","aliases":[],"title":"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:/…","description":"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.","state":0,"publishedAt":"2021-05-25T19:15:07.767+00:00","modifiedAt":"2026-06-17T03:53:19.733+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"severity":"MEDIUM"},{"system":"CVSS 2.0 · nvd@nist.gov · Primary","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"severity":"MEDIUM"}],"references":["https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff","https://github.com/websockets/ws/security/advisories/GHSA-6fc8-4gx4-v693","https://lists.apache.org/thread.html/rdfa7b6253c4d6271e31566ecd5f30b7ce1b8fb2c89d52b8c4e0f4e30%40%3Ccommits.tinkerpop.apache.org%3E","https://security.netapp.com/advisory/ntap-20210706-0005/"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-32640","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-400"],"productCriteria":["cpe:2.3:a:ws_project:ws:*:*:*:*:*:node.js:*:*","cpe:2.3:a:netapp:e-series_performance_analyzer:-:*:*:*:*:*:*:*"],"sourceDates":{"published":"2021-05-25T19:15:07.767","lastModified":"2026-06-17T03:53:19.733"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2021-32640","identifiers":["CVE-2021-32640"]},"retained":false,"historicalAffected":[]},{"revision":"02c6f871dc414cb28ec54bb8df77f323","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-6fc8-4gx4-v693","aliases":["CVE-2021-32640"],"title":"ReDoS in Sec-Websocket-Protocol header","description":"### 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.\n","state":0,"publishedAt":"2021-05-28T19:19:03+00:00","modifiedAt":"2026-07-08T06:28:00.1038086+00:00","affected":[{"ecosystem":"npm","name":"ws","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"7.0.0"},{"kind":"fixed","version":"7.4.6"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"ws","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"6.0.0"},{"kind":"fixed","version":"6.2.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"ws","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"5.0.0"},{"kind":"fixed","version":"5.2.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/websockets/ws/security/advisories/GHSA-6fc8-4gx4-v693","https://nvd.nist.gov/vuln/detail/CVE-2021-32640","https://github.com/websockets/ws/issues/1895","https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff","https://github.com/websockets/ws","https://lists.apache.org/thread.html/rdfa7b6253c4d6271e31566ecd5f30b7ce1b8fb2c89d52b8c4e0f4e30@%3Ccommits.tinkerpop.apache.org%3E","https://security.netapp.com/advisory/ntap-20210706-0005"],"sourceUrl":"https://github.com/advisories/GHSA-6fc8-4gx4-v693","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-6fc8-4gx4-v693","identifiers":["GHSA-6fc8-4gx4-v693","CVE-2021-32640"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-25T16:30:51.6399626+00:00","complete":true,"records":1796,"lastAttemptAt":"2026-11-25T16:30:51.6399626+00:00","lastSuccessAt":"2026-11-25T16:30:52.034918+00:00","error":null,"lastVerifiedAt":"2026-11-25T16:30:52.0349214+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-8d356adab43082cb10bb7c033ed58312cf2ad2f0fb10e0afdf27fc89fa361f3b-eff9d08c8f0fa32ddca8b3faeb4fb15ed8fd3be7ad4cea54f526276594975076","complete":true,"records":432225,"lastAttemptAt":"2026-11-25T16:28:38.1682659+00:00","lastSuccessAt":"2026-11-25T16:28:38.0153955+00:00","error":null,"lastVerifiedAt":"2026-11-25T16:28:38.1682659+00:00","snapshotPublishedAt":"2026-11-25T16:27:14+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-fe3c1be5a79449a09eb76cfe4a645b7c","complete":false,"records":13939,"lastAttemptAt":"2026-11-25T16:41:38.9086864+00:00","lastSuccessAt":"2026-11-25T16:41:37.884+00:00","error":"153 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-25T16:41:37.884+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13628,"expectedIdentifiers":13987,"failedIdentifiers":153},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-25T16:30:51.6399626+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-25T16:30:51.6399626+00:00","lastSuccessAt":"2026-11-25T16:30:52.035995+00:00","error":null,"lastVerifiedAt":"2026-11-25T16:30:52.0359954+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b1697be945394a11bfe4d90c22645cd8","complete":true,"records":13951,"lastAttemptAt":"2026-11-25T16:30:53.1656546+00:00","lastSuccessAt":"2026-11-25T16:30:53.16+00:00","error":null,"lastVerifiedAt":"2026-11-25T16:30:53.16+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13987,"expectedIdentifiers":13987,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-70b1e3058f76fab20c77bb1c4924a4c57f7654dd208befb5b1f237e682d6ddca","complete":true,"records":10077,"lastAttemptAt":"2026-11-25T16:30:51.4950342+00:00","lastSuccessAt":"2026-11-25T11:46:59.5507764+00:00","error":null,"lastVerifiedAt":"2026-11-25T16:30:51.4950342+00:00","snapshotPublishedAt":"2026-11-25T11:03:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-25T16:28:38.3174258+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-25T16:28:38.3174258+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-5be533520b83c9bfaebc80695093f6f0d59feafc2a1eab94e91dd79d1bb9241b","complete":true,"records":3222,"lastAttemptAt":"2026-11-25T16:30:51.5978795+00:00","lastSuccessAt":"2026-11-25T11:47:03.6026853+00:00","error":null,"lastVerifiedAt":"2026-11-25T16:30:51.5978795+00:00","snapshotPublishedAt":"2026-11-25T11:18:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-93117e9f4237570c8330a2370f4c3e20e3306a5fa2ad4a5c945eb39d2bbbbbda","complete":true,"records":233129,"lastAttemptAt":"2026-11-25T16:30:51.3700222+00:00","lastSuccessAt":"2026-11-25T16:30:50.1279622+00:00","error":null,"lastVerifiedAt":"2026-11-25T16:30:51.3700222+00:00","snapshotPublishedAt":"2026-11-25T15:33:14+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}