CVE-2022-21222

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.

Severity
MEDIUM
CVSS v3
5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P · source cna
Exploit chance (EPSS)
1.904%
chance of exploitation in the next 30 days
higher than 80.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationpoc
Automatableyes
Technical impactpartial
Scored2025-05-20

Timeline

  1. 2022-09-30Published by the CNA05:05 UTC
  2. 2022-10-01GitHub advisory published (GHSA-p28h-cc7q-c4fg)1 day after publication
  3. 2025-05-20CISA SSVC decision recorded963 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-p28h-cc7q-c4fg, affected packages:

PackageVulnerable versionsFixed in
npm css-whatbefore 2.1.32.1.3

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
css-what_project css-whatbefore 2.1.3fixed in 2.1.32.1.3

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources