Live threats

All CVEs / Websocket-extensions Project

CVE-2020-7662Websocket-extensions Project Websocket-extensions

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
3.1%
probability of exploitation in 30 days · percentile 88
Auth required
No
Published
Jun 2, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

websocket-extensions npm module prior to 0.1.4 allows Denial of Service (DoS) via Regex Backtracking. The extension parser may take quadratic time when parsing a header containing an unclosed string parameter value whose content is a repeating two-byte sequence of a backslash and some other character. This could be abused by an attacker to conduct Regex Denial Of Service (ReDoS) on a single-threaded server by providing a malicious payload with the Sec-WebSocket-Extensions header.

Original NVD text.

What to do

  1. Apply the vendor's security update for Websocket-extensions.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm websocket-extensions < 0.1.4 0.1.4 npm install websocket-extensions@0.1.4

Per OSV / GitHub Advisories (GHSA-g78m-2chm-r7qv). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
websocket-extensions_projectwebsocket-extensions< 0.1.4

Official sources

References

Links published by the sources. Open them with care.