{"id":"CVE-2022-25883","aliases":["CVE-2022-25883","GHSA-c2qf-rxjj-qqgw"],"related":[],"kind":"vulnerability","state":"published","title":"semver vulnerable to Regular Expression Denial of Service","summary":"Versions of the package semver before 7.5.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Versions of the package semver before 7.5.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.","source":"cvelist"},{"lang":"en","text":"Versions of the package semver before 7.5.2 on the 7.x branch, before 6.3.1 on the 6.x branch, and all other versions before 5.7.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.","format":"markdown","source":"ghsa"}],"published":"2023-06-21T05:00:03.352Z","modified":"2026-09-10T03:50:02.224Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"7.5.2","status":"affected"}],"product":"semver","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"7.0.0","status":"affected","fixed":"7.5.2"}],"ecosystem":"npm","package":"semver","purl":"pkg:npm/semver","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"6.0.0","status":"affected","fixed":"6.3.1"}],"ecosystem":"npm","package":"semver","purl":"pkg:npm/semver","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0-alpha","status":"affected","fixed":"5.7.2"}],"ecosystem":"npm","package":"semver","purl":"pkg:npm/semver","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.7.2"},{"status":"affected","introduced":"6.0.0","fixed":"6.3.1"},{"status":"affected","introduced":"7.0.0","fixed":"7.5.3"}],"vendor":"npmjs","product":"semver","cpe":"cpe:2.3:a:npmjs:semver:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-SEMVER-3247795","tags":["exploit","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/npm/node-semver/blob/main/internal/re.js%23L160","tags":["broken-link","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/npm/node-semver/blob/main/internal/re.js%23L138","tags":["broken-link","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/npm/node-semver/blob/main/classes/range.js%23L97-L104","tags":["broken-link","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/npm/node-semver/pull/564","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/npm/node-semver/commit/717534ee353682f3bcf33e60a8af4292626d4441","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20241025-0004/","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25883","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/npm/node-semver/pull/585","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/npm/node-semver/pull/593","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/npm/node-semver/commit/2f8fd41487acf380194579ecb6f8b1bbfe116be0","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/npm/node-semver/commit/928e56d21150da0413a3333a3148b20e741a920c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/npm/node-semver","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/npm/node-semver/blob/main/classes/range.js#L97-L104","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/npm/node-semver/blob/main/internal/re.js#L138","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/npm/node-semver/blob/main/internal/re.js#L160","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20241025-0004","tags":["web"],"sources":["ghsa"]}],"credits":["Alessio Della Libera - Snyk Research Team"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-12-06T16:54:52.064Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-25883","url":"https://www.cve.org/CVERecord?id=CVE-2022-25883","licence":"CVE Terms of Use","modified":"2024-12-06T16:55:09.228Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c2qf-rxjj-qqgw","url":"https://github.com/advisories/GHSA-c2qf-rxjj-qqgw","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:02.224Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-25883","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25883","licence":"Public domain","modified":"2026-06-17T04:34:26.360Z"}],"updatedAt":"2026-11-25T22:58:19.444Z","epss":{"score":0.02761,"percentile":0.86663,"date":"2026-12-01T12:00:22.000Z"}}