Vulnerability · Published Feb 3, 2023 · Assigned by GitHub_M

CVE-2023-23925Switcher Client contains Regular Expression Denial of Service (ReDoS)

High 8.6

In plain English

A high-severity regular-expression denial of service in switcher-client-master from switcherapi. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.6High
Exploit odds (30 days)0.5%top 54.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Switcher Client is a JavaScript SDK to work with Switcher API which is cloud-based Feature Flag. Unsanitized input flows into Strategy match operation (EXIST), where it is used to build a regular expression. This may result in a Regular expression Denial of Service attack (reDOS). This issue has been patched in version 3.1.4. As a workaround, avoid using Strategy settings that use REGEX in conjunction with EXIST and NOT_EXIST operations.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmswitcher-client3.1.4GHSA-wqxw-8h5g-hq56

Affected products (as reported)

VendorProductVersions
switcherapi switcher-client-master < 3.1.4

Weakness: CWE-1333, CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H

References