// For flags

CVE-2022-25883

nodejs-semver: Regular expression denial of service

Severity Score

7.5
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

1
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
Descriptions

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.

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in node-semver package via the 'new Range' function. This issue could allow an attacker to pass untrusted malicious regex user data as a range, causing the service to excessively consume CPU depending upon the input size, resulting in a denial of service.

*Credits: Alessio Della Libera - Snyk Research Team
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
Timeline
  • 2022-02-24 CVE Reserved
  • 2023-06-21 CVE Published
  • 2024-10-22 EPSS Updated
  • 2024-10-25 CVE Updated
  • 2024-10-25 First Exploit
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
CWE
  • CWE-1333: Inefficient Regular Expression Complexity
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Npmjs
Search vendor "Npmjs"
Semver
Search vendor "Npmjs" for product "Semver"
< 5.7.2
Search vendor "Npmjs" for product "Semver" and version " < 5.7.2"
node.js
Affected
Npmjs
Search vendor "Npmjs"
Semver
Search vendor "Npmjs" for product "Semver"
>= 6.0.0 < 6.3.1
Search vendor "Npmjs" for product "Semver" and version " >= 6.0.0 < 6.3.1"
node.js
Affected
Npmjs
Search vendor "Npmjs"
Semver
Search vendor "Npmjs" for product "Semver"
>= 7.0.0 < 7.5.2
Search vendor "Npmjs" for product "Semver" and version " >= 7.0.0 < 7.5.2"
node.js
Affected