CVE-2022-21222
Regular Expression Denial of Service (ReDoS)
Reported by snyk · Published September 30, 2022
css-what is fixed in 2.1.3 (npm)
The package css-what before 2.1.3 are vulnerable to Regular Expression Denial of Service (ReDoS) due to the usage of insecure regular expression in the re_attr variable of index.js. The exploitation of this vulnerability could be triggered via the parse function.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| css-what | npm | 2.1.3 |
| css-what | css-what_project | 2.1.3 |
| css-what | n/a | 2.1.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | css-what | unspecified |
| n/a | css-what | * |
| css-what_project | css-what | |
| npm | css-what | 0 |
Timeline
- Sep 30, 2022 EPSS Score (30 in total, the first dated here)
- Sep 30, 2022 CVE Published
- Mar 9, 2026 Security Advisory
- Jun 17, 2026 CVE Updated
- Jul 8, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-21222
vulnetix vdb fixes CVE-2022-21222
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-21222/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20230303 [SECURITY] [DLA 3350-1] node-css-what security update mailing-list
- https://nvd.nist.gov/vuln/detail/CVE-2022-21222 advisory
- https://github.com/advisories/GHSA-p28h-cc7q-c4fg advisory
- https://github.com/fb55/css-what/commit/dc510929790da6617e7aa93a616498b22f6a6b72 patch
- https://github.com/fb55/css-what url
- https://github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js#23L12 url