Advisory

GHSA-c2qf-rxjj-qqgw

Also known as: CVE-2022-25883

Summary

semver vulnerable to Regular Expression Denial of Service

Details

Versions of the package semver before 7.5.2 on the 7.x branch, before 6.3.1 on the 6.x branch, and all other versions before 5.7.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-06-21 06:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

semver

npm · All systems

Affected

  • introduced 7.0.0, fixed 7.5.2 (semver)

Fixed versions

7.5.2

Fix

semver

npm · All systems

Affected

  • introduced 6.0.0, fixed 6.3.1 (semver)

Fixed versions

6.3.1

Fix

semver

npm · All systems

Affected

  • introduced 2.0.0-alpha, fixed 5.7.2 (semver)

Fixed versions

5.7.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences