Live threats

All CVEs / Css-what Project

CVE-2022-21222Css-what Project Css-what

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.8%
probability of exploitation in 30 days · percentile 78
Auth required
No
Published
Sep 30, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Css-what.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm css-what < 2.1.3 2.1.3 npm install css-what@2.1.3

Per OSV / GitHub Advisories (GHSA-p28h-cc7q-c4fg). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
css-what_projectcss-what< 2.1.3

Official sources

References

Links published by the sources. Open them with care.