CVE-2022-25883

Medium

Description

Versions of the package semver before 7.5.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.

SeverityMedium
CVSS5.3
Exploit probability—
ProductNpmjs Semver
PublishedJun 21, 2023
First seenJun 21, 2023
Weakness typeCWE-1333CWE-1333

How to fix

Update
  • npmjs semver5.7.2, 6.3.1, 7.5.3 or later
  • semver7.5.2, 6.3.1, 5.7.2 or later

Affected products

ProductAffected versionsFixed in
npmjs semverv < 5.7.2, 6.0.0 ≤ v < 6.3.1, 7.0.0 ≤ v < 7.5.35.7.2, 6.3.1, 7.5.3
semvernpm7.0.0 ≤ v < 7.5.2, 6.0.0 ≤ v < 6.3.1, 2.0.0-alpha ≤ v < 5.7.27.5.2, 6.3.1, 5.7.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.