Name | CVE-2022-21222 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3350-1 |
Debian Bugs | 1032188 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
node-css-what (PTS) | bullseye | 4.0.0-3+deb11u1 | fixed |
| sid, trixie, bookworm | 6.1.0-5 | fixed |
The information below is based on the following data on fixed versions.
Notes
https://security.snyk.io/vuln/SNYK-JS-CSSWHAT-3035488
ReDoS issue fixed with rewrite of module to TypeScript
Not fixed in 4.0.0 see https://sources.debian.org/src/node-css-what/4.0.0-3/src/parse.ts/#L84
Fixed by https://github.com/fb55/css-what/pull/503/commits/46b0dbd6f38fb375da02208426f93f87f7169b7e