{"id":"GHSA-4x5v-gmq8-25ch","summary":"Regular expression denial of service in semver-regex","details":"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","aliases":["CVE-2021-43307"],"modified":"2026-09-10T03:49:43.854292802Z","published":"2022-06-03T00:01:00Z","database_specific":{"github_reviewed_at":"2022-06-03T22:26:33Z","nvd_published_at":"2022-06-02T14:15:00Z","cwe_ids":["CWE-1333"],"severity":"LOW","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43307"},{"type":"WEB","url":"https://github.com/sindresorhus/semver-regex/commit/d8ba39a528c1027c43ab23f12eec28ca4d40dd0c"},{"type":"PACKAGE","url":"https://github.com/sindresorhus/semver-regex"},{"type":"WEB","url":"https://research.jfrog.com/vulnerabilities/semver-regex-redos-xray-211349"}],"affected":[{"package":{"name":"semver-regex","ecosystem":"npm","purl":"pkg:npm/semver-regex"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.1.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-4x5v-gmq8-25ch/GHSA-4x5v-gmq8-25ch.json"}},{"package":{"name":"semver-regex","ecosystem":"npm","purl":"pkg:npm/semver-regex"},"ranges":[{"type":"SEMVER","events":[{"introduced":"4.0.0"},{"fixed":"4.0.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-4x5v-gmq8-25ch/GHSA-4x5v-gmq8-25ch.json"}}],"schema_version":"1.9.0"}