What’s Vulnerable › Vulnerabilities

CVE-2021-43307: Exponential ReDoS in semver-regex

Description

An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the semver-regex npm package, when an attacker is able to supply arbitrary input to the test() method

Affected products

How to fix

Upgrade to a fixed version: semver-regex 3.1.4, 4.0.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-43307 or the next vulnerability affects your stack