Skip to content
OpenAdvisories
Medium · 5.9 CVE-2021-43307 EUVD-2022-5926GHSA-4x5v-gmq8-25ch

Exponential ReDoS in semver-regex

Published Jun 1, 2022 · Updated Sep 17, 2024 · Assigned by JFROG

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

Affected products

VendorProductAffectedFixed
semver-regex semver-regex unspecified – < 3.1.4 3.1.4

Affected packages

EcosystemPackageAffectedFixedRecord
npm semver-regex < 3.1.4 3.1.4 GHSA-4x5v-gmq8-25ch
npm semver-regex >= 4.0.0, < 4.0.3 4.0.3 GHSA-4x5v-gmq8-25ch

References