GHSA-c2qf-rxjj-qqgw

Suggest an improvement
Source
https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/06/GHSA-c2qf-rxjj-qqgw/GHSA-c2qf-rxjj-qqgw.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-c2qf-rxjj-qqgw
Aliases
Downstream
Related
Published
2023-06-21T06:30:28Z
Modified
2026-02-04T21:54:05.266289Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
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.

Database specific
{
    "github_reviewed_at": "2023-06-22T16:52:56Z",
    "severity": "HIGH",
    "nvd_published_at": "2023-06-21T05:15:09Z",
    "cwe_ids": [
        "CWE-1333"
    ],
    "github_reviewed": true
}
References

Affected packages

npm / semver

Package

Affected ranges

Type
SEMVER
Events
Introduced
7.0.0
Fixed
7.5.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/06/GHSA-c2qf-rxjj-qqgw/GHSA-c2qf-rxjj-qqgw.json"

npm / semver

Package

Affected ranges

Type
SEMVER
Events
Introduced
6.0.0
Fixed
6.3.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/06/GHSA-c2qf-rxjj-qqgw/GHSA-c2qf-rxjj-qqgw.json"

npm / semver

Package

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0-alpha
Fixed
5.7.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/06/GHSA-c2qf-rxjj-qqgw/GHSA-c2qf-rxjj-qqgw.json"