All reports
Low

Regular expression denial of service in semver-regex

Affected versions

Affected versions
>= 4.0.0, < 4.0.3
Fixed version
4.0.3
Affected versions
< 3.1.4
Fixed version
3.1.4

Exploitation

CVE-2021-43307

Probability of exploitation in the next 30 days: 1.56%

FIRST EPSS · 2026-11-23

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

Links