GHSA-p28h-cc7q-c4fg

Suggest an improvement
Source
https://github.com/advisories/GHSA-p28h-cc7q-c4fg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-p28h-cc7q-c4fg/GHSA-p28h-cc7q-c4fg.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-p28h-cc7q-c4fg
Aliases
Published
2022-10-01T00:00:24Z
Modified
2023-11-01T05:19:27.359129Z
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
css-what vulnerable to ReDoS due to use of insecure regular expression
Details

The package css-what before 2.1.3 is vulnerable to Regular Expression Denial of Service (ReDoS) due to the use of insecure regular expression in the re_attr variable of index.js. The exploitation of this vulnerability could be triggered via the parse function.

Database specific
{
    "nvd_published_at": "2022-09-30T05:15:00Z",
    "cwe_ids": [
        "CWE-400"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2022-10-04T21:11:32Z"
}
References

Affected packages

npm / css-what

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.3

Ecosystem specific

{
    "affected_functions": [
        "(css-what).parse"
    ]
}