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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | switcher-client | 3.1.4 | GHSA-wqxw-8h5g-hq56 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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