Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-7662
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:30 UTC · Revision 1
Source evidence
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.
osv:CVE-2020-7662
Complete source record
{
"id": "86375d45b391d500637c3921cefab68c9bc2ef12790c2ab8f3b6f6d6a7576f29",
"url": "https://osv.dev/vulnerability/CVE-2020-7662",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-7662",
"summary": "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.",
"evidence": "osv:CVE-2020-7662",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2020-7662",
"aliases": [
"CVE-2020-7662",
"GHSA-g78m-2chm-r7qv",
"SNYK-JS-WEBSOCKETEXTENSIONS-570623"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/faye/websocket-extensions-node",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "5ea0b420804ba6c4219e152b52fd3bdd6d144041"
},
{
"fixed": "29496f6838bfadfe5a2f85dff33ed0ba33873237"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:websocket-extensions_project:websocket-extensions:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.1.4"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "29496f6838bfadfe5a2f85dff33ed0ba33873237"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"0.1.3",
"0.1.2",
"0.1.1",
"0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-7662.json"
}
}
],
"modified": "2026-10-20T10:54:24.203478342Z",
"provider": "osv",
"references": [
"https://github.com/faye/websocket-extensions-node/commit/29496f6838bfadfe5a2f85dff33ed0ba33873237",
"https://blog.jcoglan.com/2020/06/02/redos-vulnerability-in-websocket-extensions",
"https://github.com/faye/websocket-extensions-node/security/advisories/GHSA-g78m-2chm-r7qv",
"https://snyk.io/vuln/SNYK-JS-WEBSOCKETEXTENSIONS-570623"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2020-7662",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385289,
"published_at": "2020-06-02T19:15:12.403+00:00"
}