{"id":"CVE-2021-3795","published":"2021-09-15T16:23:49Z","modified":"2024-08-03T17:09:08Z","title":"Inefficient Regular Expression Complexity in sindresorhus/semver-regex","vendor":"sindresorhus","product":"sindresorhus/semver-regex","tier":"tail","description":{"text":"semver-regex is vulnerable to Inefficient Regular Expression Complexity","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01517,"percentile":0.75171,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://huntr.dev/bounties/006624e3-35ac-448f-aab9-7b5183f30e28","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sindresorhus/semver-regex/commit/11c66245f4e1976dccc52977ed183696a21a3fd7","tags":["x_refsource_MISC"]}],"priority":{"score":20.3,"factors":[{"name":"EPSS percentile","points":15.03},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"sindresorhus","affectedVersions":[{"vendor":"sindresorhus","product":"sindresorhus/semver-regex","versions":[">= unspecified, < 4.0.1",">= unspecified, < 3.1.3"]}],"fixedVersions":[{"vendor":"sindresorhus","product":"sindresorhus/semver-regex","versions":["3.1.3"]}],"affected":[{"ecosystem":"npm","package":"semver-regex","vulnerableRanges":["<3.1.3",">=4.0.0, <4.0.1"],"patched":["3.1.3","4.0.1"],"from":["GHSA-44c6-4v22-4mhx"],"provenance":"source"}],"summary":{"text":"The sindresorhus/semver-regex package, a regular expression library for matching semantic version strings, contains an inefficient regular expression whose matching complexity can be abused. An unauthenticated remote attacker can trigger it over the network with no user interaction and no special configuration, by supplying crafted input that causes excessive processing and denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:47Z"},"euvd":{"id":"EUVD-2021-1966","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-sindresorhus-semver-regex-cve-2021-3795","children":[{"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"}}