Affected versions
npmsemver-regex
- Affected versions
- >= 4.0.0, < 4.0.3
- Fixed version
- 4.0.3
npmsemver-regex
- Affected versions
- < 3.1.4
- Fixed version
- 3.1.4
Exploitation
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
Links
- https://github.com/advisories/GHSA-4x5v-gmq8-25ch
- https://github.com/sindresorhus/semver-regex
- https://github.com/sindresorhus/semver-regex/commit/d8ba39a528c1027c43ab23f12eec28ca4d40dd0c
- https://nvd.nist.gov/vuln/detail/CVE-2021-43307
- https://research.jfrog.com/vulnerabilities/semver-regex-redos-xray-211349
- https://research.jfrog.com/vulnerabilities/semver-regex-redos-xray-211349/

