GHSA-vp56-6g26-6827

Suggest an improvement
Source
https://github.com/advisories/GHSA-vp56-6g26-6827
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-vp56-6g26-6827/GHSA-vp56-6g26-6827.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vp56-6g26-6827
Aliases
Published
2022-08-02T00:00:25Z
Modified
2023-11-08T04:08:52.815695Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
node-fetch Inefficient Regular Expression Complexity
Details

node-fetch is a light-weight module that brings window.fetch to node.js.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the isOriginPotentiallyTrustworthy() function in referrer.js, when processing a URL string with alternating letters and periods, such as 'http://' + 'a.a.'.repeat(i) + 'a'.

Database specific
{
    "github_reviewed_at": "2022-08-04T17:37:24Z",
    "cwe_ids": [
        "CWE-1333",
        "CWE-400"
    ],
    "nvd_published_at": "2022-08-01T15:15:00Z",
    "severity": "MODERATE",
    "github_reviewed": true
}
References

Affected packages

npm / node-fetch

Package

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.2.10