UBUNTU-CVE-2021-32640

Source
https://ubuntu.com/security/CVE-2021-32640
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32640.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-32640
Related
Published
2021-05-25T19:15:00Z
Modified
2025-06-03T17:35:41Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
[none]
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.

References

Affected packages

Ubuntu:Pro:16.04:LTS / node-ws

Package

Name
node-ws
Purl
pkg:deb/ubuntu/node-ws@1.0.1+ds1.e6ddaae4-1?arch=source&distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.7.2+ds1.349b7460-1

1.*

1.0.1+ds1.e6ddaae4-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:18.04:LTS / node-ws

Package

Name
node-ws
Purl
pkg:deb/ubuntu/node-ws@1.1.0+ds1.e6ddaae4-3ubuntu1?arch=source&distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.1.0+ds1.e6ddaae4-3build1
1.1.0+ds1.e6ddaae4-3ubuntu1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:20.04:LTS / node-ws

Package

Name
node-ws
Purl
pkg:deb/ubuntu/node-ws@7.2.1-3?arch=source&distro=esm-apps/focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.1.0+ds1.e6ddaae4-5

7.*

7.2.1-2
7.2.1-3

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / node-ws

Package

Name
node-ws
Purl
pkg:deb/ubuntu/node-ws@8.5.0+~cs13.3.3-2?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

7.*

7.4.2+~cs18.0.8-2
7.5.5+~cs13.0.13-1

8.*

8.5.0+~cs13.3.3-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}