Inefficient regular expression complexity in Semver-regex - CVE-2021-43307

 

Inefficient regular expression complexity in Semver-regex - CVE-2021-43307

Published: May 14, 2025


Vulnerability identifier: #VU109181
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2021-43307
CWE-ID: CWE-1333
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: sindresorhus
Affected software:
Semver-regex

Detailed vulnerability description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to insufficient input validation when processing untrusted input with a regular expressions. A remote attacker can pass specially crafted data to the application and perform regular expression denial of service (ReDos) attack.


How to mitigate CVE-2021-43307

Cybersecurity Help is currently unaware of any official solution to address this vulnerability..

Sources