CVE-2022-21222
published medium CVSS 3.1 · 5.3Regular Expression Denial of Service (ReDoS)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | css-whatunspecified to < 2.1.3 | Affected | Not stated | snyk |
| Debian | buster | node-css-what | Advisory build | 2.1.0-1+deb10u1 | DLA-3350-1 |
| Ubuntu | bionic | node-css-what | Advisory build | 2.1.0-1+deb10u1build0.18.04.1 | USN-6065-1 |
| Ubuntu | focal | node-css-what | Advisory build | 3.2.1-1ubuntu0.1~esm1 | USN-6065-1 |
| Ubuntu | xenial | node-css-what | Advisory build | 2.1.0-1ubuntu0.16.04.1~esm1 | USN-6065-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | css-what | unspecified to < 2.1.3 (affected · custom) | snyk · cna |
Weaknesses
2- Regular Expression Denial of Service (ReDoS)
- CWE-1333 CWE-1333 Inefficient Regular Expression Complexity
References
3- https://github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js%23L12
- [debian-lts-announce] 20230303 [SECURITY] [DLA 3350-1] node-css-what security update https://lists.debian.org/debian-lts-announce/2023/03/msg00001.html
- https://security.snyk.io/vuln/SNYK-JS-CSSWHAT-3035488
Provider assertions
3snyk · cna
Regular Expression Denial of Service (ReDoS)
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 03b5d48b4ba3a4280117f97101507a4cd01d5b99e54b23935adad5717f0c0d92
- Ingested
- 23 Sep 2026, 07:58:10 UTC
- Source record
- Official CVE record