Vulnerability · Published Sep 30, 2022 · Assigned by snyk
CVE-2022-21222Regular Expression Denial of Service (ReDoS)
Medium 5.3
In plain English
A medium-severity regular-expression denial of service in css-what. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.9% (higher than 80% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.9%top 20.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-css-what | 5.0.1-1 | DEBIAN-CVE-2022-21222 |
| Debian:13 | node-css-what | 5.0.1-1 | DEBIAN-CVE-2022-21222 |
| Debian:14 | node-css-what | 5.0.1-1 | DEBIAN-CVE-2022-21222 |
| Ubuntu:24.04:LTS | node-css-what | no fix listed | UBUNTU-CVE-2022-21222 |
| Ubuntu:25.10 | node-css-what | no fix listed | UBUNTU-CVE-2022-21222 |
| Ubuntu:26.04:LTS | node-css-what | no fix listed | UBUNTU-CVE-2022-21222 |
| Ubuntu:26.10 | node-css-what | no fix listed | UBUNTU-CVE-2022-21222 |
| npm | css-what | 2.1.3 | GHSA-p28h-cc7q-c4fg |
Affected products (as reported)
Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P