Skip to main content

Inefficient Regular Expression Complexity in org.webjars.npm:semver

CVE-2022-25883

  • org.webjars.npm:semver
  • semver
Severity High
Score 7.5/10

Summary

The package semver versions prior to 5.7.2, 6.x through 6.3.0 and 7.x through 7.5.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function "new Range", when untrusted user data is provided as a range.

  • LOW
  • NETWORK
  • NONE
  • UNCHANGED
  • NONE
  • NONE
  • NONE
  • HIGH

CWE-1333 - Inefficient Regular Expression Complexity

The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.

Advisory Timeline

  • Published