{"id":"CVE-2021-43307","aliases":["GHSA-4x5v-gmq8-25ch"],"url":"https://o3.security/vulnerability/CVE-2021-43307","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","published":"2022-06-02T14:15:30.987Z","modified":"2026-07-09T00:37:44.488946Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"semver-regex","fixedVersion":"3.1.4"},{"ecosystem":"npm","name":"semver-regex","fixedVersion":"4.0.3"}],"fix":{"url":"https://github.com/sindresorhus/semver-regex/commit/d8ba39a528c1027c43ab23f12eec28ca4d40dd0c","label":"sindresorhus/semver-regex@d8ba39a"},"references":[{"type":"EVIDENCE","url":"https://research.jfrog.com/vulnerabilities/semver-regex-redos-xray-211349/"},{"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-09T00:37:44.488946Z"}}