Skip to content

Regular expression denial of service in semver-regex

Low severity GitHub Reviewed Published Jun 3, 2022 to the GitHub Advisory Database • Updated Jul 19, 2023

Package

npm semver-regex (npm)

Affected versions

< 3.1.4
>= 4.0.0, < 4.0.3

Patched versions

3.1.4
4.0.3

Description

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

References

Published by the National Vulnerability Database Jun 2, 2022
Published to the GitHub Advisory Database Jun 3, 2022
Reviewed Jun 3, 2022
Last updated Jul 19, 2023

Severity

Low

EPSS score

0.066%
(31st percentile)

Weaknesses

CVE ID

CVE-2021-43307

GHSA ID

GHSA-4x5v-gmq8-25ch
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.