{"id":"GHSA-4x5v-gmq8-25ch","revision":"a703b5a540c1440eb5624e00bf9ea773","records":[{"revision":"a703b5a540c1440eb5624e00bf9ea773","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-4x5v-gmq8-25ch","aliases":["CVE-2021-43307"],"title":"Regular expression denial of service 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","state":0,"publishedAt":"2022-06-03T00:01:00+00:00","modifiedAt":"2026-09-10T03:49:43.8542928+00:00","affected":[{"ecosystem":"npm","name":"semver-regex","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.1.4"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"semver-regex","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"4.0.0"},{"kind":"fixed","version":"4.0.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2021-43307","https://github.com/sindresorhus/semver-regex/commit/d8ba39a528c1027c43ab23f12eec28ca4d40dd0c","https://github.com/sindresorhus/semver-regex","https://research.jfrog.com/vulnerabilities/semver-regex-redos-xray-211349"],"sourceUrl":"https://github.com/advisories/GHSA-4x5v-gmq8-25ch","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-4x5v-gmq8-25ch","identifiers":["GHSA-4x5v-gmq8-25ch","CVE-2021-43307"]},"retained":false,"historicalAffected":[]}],"coverage":[]}