ubuntu-cve-2021-32640
Vulnerability from osv_ubuntu
Published
2021-05-25 19:15
Modified
2025-10-24 04:50
Summary
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 and/or the maxHeaderSize options.
Severity
5.3 (Medium)
5.3 (Medium)
N/A (UNKNOWN)
References
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-ws",
"binary_version": "1.0.1+ds1.e6ddaae4-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "node-ws",
"purl": "pkg:deb/ubuntu/node-ws@1.0.1+ds1.e6ddaae4-1?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.7.2+ds1.349b7460-1",
"1.0.1+ds1.e6ddaae4-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-ws",
"binary_version": "1.1.0+ds1.e6ddaae4-3ubuntu1"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "node-ws",
"purl": "pkg:deb/ubuntu/node-ws@1.1.0+ds1.e6ddaae4-3ubuntu1?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.1.0+ds1.e6ddaae4-3build1",
"1.1.0+ds1.e6ddaae4-3ubuntu1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-ws",
"binary_version": "7.2.1-3"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "node-ws",
"purl": "pkg:deb/ubuntu/node-ws@7.2.1-3?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.1.0+ds1.e6ddaae4-5",
"7.2.1-2",
"7.2.1-3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-ws",
"binary_version": "8.5.0+~cs13.3.3-2"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "node-ws",
"purl": "pkg:deb/ubuntu/node-ws@8.5.0+~cs13.3.3-2?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"7.4.2+~cs18.0.8-2",
"7.5.5+~cs13.0.13-1",
"8.5.0+~cs13.3.3-2"
]
}
],
"aliases": [],
"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.",
"id": "UBUNTU-CVE-2021-32640",
"modified": "2025-10-24T04:50:20Z",
"published": "2021-05-25T19:15:00Z",
"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"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2021-32640"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
Loading…
Loading…