CVE-2022-21222

NameCVE-2022-21222
DescriptionThe 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3350-1
Debian Bugs1032188

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
node-css-what (PTS)bullseye4.0.0-3+deb11u1fixed
sid, trixie, bookworm6.1.0-5fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
node-css-whatsourcebuster2.1.0-1+deb10u1DLA-3350-1
node-css-whatsourcebullseye4.0.0-3+deb11u1
node-css-whatsource(unstable)5.0.1-11032188

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

Search for package or bug name: Reporting problems