{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-43307","id":"CVE-2021-43307","title":"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","descriptionLong":"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-01T16:47:38.625Z","updated":"2026-10-24T10:30:32.958212501Z","reserved":"2021-11-03T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"JFROG","metric":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"JFROG"},"metrics":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"JFROG"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"jfrog.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"OSV"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","rating":"medium","source":"NVD"}],"rating":"medium","products":["semver-regex"],"affectedProducts":[{"vendor":"semver-regex","product":"semver-regex","defaultStatus":null,"versions":[{"changes":[{"at":"4.0.3","status":"unaffected"}],"lessThan":"3.1.4","status":"affected","version":"unspecified","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"semver-regex","purl":"pkg:npm/semver-regex","ranges":["<3.1.4",">=4.0.0 <4.0.3"],"fixed":["3.1.4","4.0.3"],"advisory":"GHSA-4x5v-gmq8-25ch"}],"cwes":["CWE-1333"],"aliases":["GHSA-4x5v-gmq8-25ch"],"references":[{"url":"https://research.jfrog.com/vulnerabilities/semver-regex-redos-xray-211349/","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43307","tags":["advisory"]},{"url":"https://github.com/sindresorhus/semver-regex/commit/d8ba39a528c1027c43ab23f12eec28ca4d40dd0c","tags":["web"]},{"url":"https://github.com/sindresorhus/semver-regex","tags":["package"]},{"url":"https://research.jfrog.com/vulnerabilities/semver-regex-redos-xray-211349","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01558,"epssPercentile":0.75731,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-43307","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43307","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-43307","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4x5v-gmq8-25ch","ok":true,"note":"GHSA-4x5v-gmq8-25ch"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-43307","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}