Skip to content
OpenAdvisories
Medium · 5.3 CVE-2022-21222 EUVD-2022-7138GHSA-p28h-cc7q-c4fg

Regular Expression Denial of Service (ReDoS)

Published Sep 30, 2022 · Updated May 20, 2025 · Assigned by snyk

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 products

VendorProductAffectedFixed
— css-what unspecified – < 2.1.3 2.1.3

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-css-what 5.0.1-1 —
Debian 13 node-css-what 5.0.1-1 —
Debian 12 node-css-what 5.0.1-1 —
Debian 10 node-css-what 2.1.0-1+deb10u1 DLA-3350-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-css-what No fix yet —
Ubuntu 26.04 LTS node-css-what No fix yet —
Ubuntu 25.10 node-css-what No fix yet —
Ubuntu 24.04 LTS node-css-what No fix yet —
Ubuntu 18.04 LTS node-css-what 2.1.0-1+deb10u1build0.18.04.1 USN-6065-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS node-css-what 3.2.1-1ubuntu0.1~esm1 USN-6065-1
Ubuntu Pro 16.04 LTS node-css-what 2.1.0-1ubuntu0.16.04.1~esm1 USN-6065-1

Affected packages

EcosystemPackageAffectedFixedRecord
npm css-what < 2.1.3 2.1.3 GHSA-p28h-cc7q-c4fg

Advisories 2

References