Skip to content

semver vulnerable to Regular Expression Denial of Service

Moderate severity GitHub Reviewed Published Jun 21, 2023 to the GitHub Advisory Database • Updated Feb 14, 2024

Package

npm semver (npm)

Affected versions

>= 7.0.0, < 7.5.2
>= 6.0.0, < 6.3.1
< 5.7.2

Patched versions

7.5.2
6.3.1
5.7.2

Description

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.

References

Published by the National Vulnerability Database Jun 21, 2023
Published to the GitHub Advisory Database Jun 21, 2023
Reviewed Jun 22, 2023
Last updated Feb 14, 2024

Severity

Moderate
5.3
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Weaknesses

CVE ID

CVE-2022-25883

GHSA ID

GHSA-c2qf-rxjj-qqgw

Source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.