Lucene search

K
cvelistGitHub_MCVELIST:CVE-2021-32640
HistoryMay 25, 2021 - 6:25 p.m.

CVE-2021-32640 ReDoS in Sec-Websocket-Protocol header

2021-05-2518:25:09
CWE-400
GitHub_M
www.cve.org
7
websocket library
node.js
vulnerability
fixed
request headers
options

CVSS3

5.3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

LOW

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

AI Score

5.8

Confidence

High

EPSS

0.002

Percentile

60.7%

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 [email protected] (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.

CNA Affected

[
  {
    "product": "ws",
    "vendor": "websockets",
    "versions": [
      {
        "status": "affected",
        "version": ">= 5.0.0 <= 7.4.5"
      }
    ]
  }
]

CVSS3

5.3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

LOW

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

AI Score

5.8

Confidence

High

EPSS

0.002

Percentile

60.7%