Vulnerability library
Security checkJuly 19, 2023

Regular expression denial of service in semver-regex

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Low severitynpmsemver-regex

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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

Recommendation

Update the semver-regex package to the latest compatible version. Followings are version details:

  • Affected version(s): **>= 4.0.0, < 4.0.3 < 3.1.4**
  • Patched version(s): **4.0.3 3.1.4**

References

Could your website be exposed too?

SmartScanner can check your website for Regular expression denial of service in semver-regex and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated July 19, 2023