Skip to content

CVE-2022-21222 Regular Expression Denial of Service (ReDoS)

HighCVSS 7.5 EPSS 1.9%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

12 packages: 8 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/node-css-what(Ubuntu 24.04) = 6.1.0-5; All versions No fix listed No fix yet
ubuntu/node-css-what(Ubuntu 25.10) = 6.1.0-5; All versions No fix listed No fix yet
ubuntu/node-css-what(Ubuntu 26.04) = 6.1.0-5; All versions No fix listed No fix yet
ubuntu/node-css-what(Ubuntu 26.10) = 6.1.0-5; = 6.2.2-2; = 6.2.2-3; All versions No fix listed No fix yet
css-what project css-what < 2.1.3 2.1.3 Fixed
debian/node-css-what(Debian 12) < 5.0.1-1 5.0.1-1 Fixed
debian/node-css-what(Debian 13) < 5.0.1-1 5.0.1-1 Fixed
debian/node-css-what(Debian 14) < 5.0.1-1 5.0.1-1 Fixed
npm css-what(npm) < 2.1.3 2.1.3 Fixed
ubuntu/node-css-what(Ubuntu 18.04) < 2.1.0-1+deb10u1build0.18.04.1; = 2.1.0-1 2.1.0-1+deb10u1build0.18.04.1 Fixed
ubuntu/node-css-what(Ubuntu Pro 16.04) < 2.1.0-1ubuntu0.16.04.1~esm1; = 2.0.2-1; = 2.1.0-1 2.1.0-1ubuntu0.16.04.1~esm1 Fixed
ubuntu/node-css-what(Ubuntu Pro 20.04) < 3.2.1-1ubuntu0.1~esm1; = 3.1.0-2; = 3.2.0-1; = 3.2.1-1 3.2.1-1ubuntu0.1~esm1 Fixed

Affected products

ProductAffected versionsFixed in
npm css-what(npm) < 2.1.3 2.1.3
css-what project css-what < 2.1.3 2.1.3
ubuntu/node-css-what(Ubuntu:24.04) All versions No fix listed
ubuntu/node-css-what(Ubuntu:26.04) All versions No fix listed
ubuntu/node-css-what(Ubuntu:26.10) All versions No fix listed
debian/node-css-what(Debian:12) < 5.0.1-1 5.0.1-1
debian/node-css-what(Debian:14) < 5.0.1-1 5.0.1-1
debian/node-css-what(Debian:13) < 5.0.1-1 5.0.1-1
ubuntu/node-css-what(Ubuntu:Pro:16.04) < 2.1.0-1ubuntu0.16.04.1~esm1 2.1.0-1ubuntu0.16.04.1~esm1
ubuntu/node-css-what(Ubuntu:Pro:16.04) = 2.0.2-1 No fix listed
ubuntu/node-css-what(Ubuntu:Pro:16.04) = 2.1.0-1 No fix listed
ubuntu/node-css-what(Ubuntu:18.04) < 2.1.0-1+deb10u1build0.18.04.1 2.1.0-1+deb10u1build0.18.04.1
ubuntu/node-css-what(Ubuntu:18.04) = 2.1.0-1 No fix listed
ubuntu/node-css-what(Ubuntu:Pro:20.04) < 3.2.1-1ubuntu0.1~esm1 3.2.1-1ubuntu0.1~esm1
ubuntu/node-css-what(Ubuntu:Pro:20.04) = 3.1.0-2 No fix listed
ubuntu/node-css-what(Ubuntu:Pro:20.04) = 3.2.0-1 No fix listed
ubuntu/node-css-what(Ubuntu:Pro:20.04) = 3.2.1-1 No fix listed
ubuntu/node-css-what(Ubuntu:24.04) = 6.1.0-5 No fix listed
ubuntu/node-css-what(Ubuntu:25.10) All versions No fix listed
ubuntu/node-css-what(Ubuntu:25.10) = 6.1.0-5 No fix listed
ubuntu/node-css-what(Ubuntu:26.10) = 6.1.0-5 No fix listed
ubuntu/node-css-what(Ubuntu:26.10) = 6.2.2-2 No fix listed
ubuntu/node-css-what(Ubuntu:26.10) = 6.2.2-3 No fix listed
ubuntu/node-css-what(Ubuntu:26.04) = 6.1.0-5 No fix listed

References