Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1wMjhoLWNjN3EtYzRmZ84AAvJj
css-what vulnerable to ReDoS due to use of insecure regular expression
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.
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1wMjhoLWNjN3EtYzRmZ84AAvJj
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 1 year ago
Updated: 5 months ago
CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Identifiers: GHSA-p28h-cc7q-c4fg, CVE-2022-21222
References:
- https://nvd.nist.gov/vuln/detail/CVE-2022-21222
- https://security.snyk.io/vuln/SNYK-JS-CSSWHAT-3035488
- https://github.com/fb55/css-what/commit/dc510929790da6617e7aa93a616498b22f6a6b72
- https://github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js#23L12
- https://github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js%23L12
- https://lists.debian.org/debian-lts-announce/2023/03/msg00001.html
- https://github.com/advisories/GHSA-p28h-cc7q-c4fg
Blast Radius: 48.6
Affected Packages
npm:css-what
Dependent packages: 558Dependent repositories: 3,053,195
Downloads: 114,604,194 last month
Affected Version Ranges: < 2.1.3
Fixed in: 2.1.3
All affected versions: 1.0.0, 2.0.0, 2.0.1, 2.0.2, 2.1.0, 2.1.2
All unaffected versions: 2.1.3, 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.2.0, 3.2.1, 3.3.0, 3.4.0, 3.4.1, 3.4.2, 4.0.0, 5.0.0, 5.0.1, 5.1.0, 6.0.0, 6.0.1, 6.1.0