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

EcosystemPackageFixed inAdvisory
Debian:12node-css-what5.0.1-1DEBIAN-CVE-2022-21222
Debian:13node-css-what5.0.1-1DEBIAN-CVE-2022-21222
Debian:14node-css-what5.0.1-1DEBIAN-CVE-2022-21222
Ubuntu:24.04:LTSnode-css-whatno fix listedUBUNTU-CVE-2022-21222
Ubuntu:25.10node-css-whatno fix listedUBUNTU-CVE-2022-21222
Ubuntu:26.04:LTSnode-css-whatno fix listedUBUNTU-CVE-2022-21222
Ubuntu:26.10node-css-whatno fix listedUBUNTU-CVE-2022-21222
npmcss-what2.1.3GHSA-p28h-cc7q-c4fg

Affected products (as reported)

VendorProductVersions
n/a css-what unspecified – before 2.1.3

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

References