Skip to content
OpenAdvisories
High · 8.2 CVE-2020-7662 EUVD-2020-0489GHSA-g78m-2chm-r7qvSNYK-JS-WEBSOCKETEXTENSIONS-570623

Regular Expression Denial of Service in websocket-extensions (NPM package)

Published Jun 2, 2020 · Updated Aug 4, 2024 · Assigned by snyk

Description

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.

Affected products

VendorProductAffectedFixed
— websocket-extensions (npm) All versions prior to 0.1.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat Service Mesh 1 servicemesh-grafana +1 6.2.2-38.el8 RHSA-2020:2861, RHSA-2020:2796

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 js-jquery No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm websocket-extensions < 0.1.4 0.1.4 GHSA-g78m-2chm-r7qv

Advisories 5

References