{"id":"CVE-2021-43307","published":"2022-06-01T16:47:38Z","modified":"2024-09-17T00:35:50Z","title":"Exponential ReDoS in semver-regex","vendor":"semver-regex","product":"semver-regex","tier":"tail","description":{"text":"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","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01558,"percentile":0.75809,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://research.jfrog.com/vulnerabilities/semver-regex-redos-xray-211349/","tags":["x_refsource_MISC"]}],"priority":{"score":19.3,"factors":[{"name":"EPSS percentile","points":15.16},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"semver-regex","affectedVersions":[{"vendor":"semver-regex","product":"semver-regex","versions":[">= unspecified, < 3.1.4"]}],"fixedVersions":[{"vendor":"semver-regex","product":"semver-regex","versions":["4.0.3"]}],"affected":[{"ecosystem":"npm","package":"semver-regex","vulnerableRanges":["<3.1.4",">=4.0.0, <4.0.3"],"patched":["3.1.4","4.0.3"],"from":["GHSA-4x5v-gmq8-25ch"],"provenance":"source"}],"summary":{"text":"The semver-regex npm package contains an exponential ReDoS (Regular Expression Denial of Service) flaw in its regular expression used for semantic version matching. An attacker who can supply arbitrary input to the package's test() method can cause excessive backtracking, and the conditions are network reachability to the affected application and no authentication or user interaction, with the attack complexity being high.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:45Z"},"euvd":{"id":"EUVD-2022-5926","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-sindresorhus-semver-regex-cve-2021-3795","parents":[{"from":"CVE-2021-3795","to":"CVE-2021-43307","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:semver-regex","fromFixed":"3.1.3","toFixed":"3.1.4","daysApart":259},{"kind":"version-step","provenance":"source","package":"npm:semver-regex","fromFixed":"4.0.1","toFixed":"4.0.3","daysApart":259},{"kind":"same-code","provenance":"machine","files":["index.js","test.js"],"commits":["https://github.com/sindresorhus/semver-regex/commit/11c66245f4e1976dccc52977ed183696a21a3fd7","https://github.com/sindresorhus/semver-regex/commit/d8ba39a528c1027c43ab23f12eec28ca4d40dd0c"],"basis":"shared function","functions":["test"]},{"kind":"similar","provenance":"machine","score":0.54,"basis":"same package + description similarity"}]}],"packageHistory":[{"cve":"CVE-2021-3795","published":"2021-09-15","fixed":"4.0.1","kev":false},{"cve":"CVE-2021-43307","published":"2022-06-01","fixed":"4.0.3","kev":false}],"package":"npm:semver-regex"}}