Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2022-21222: The package css-what before 2.1.3 are vulnerable to Regular Expression Denial of Service (ReDoS) due to the us

48
This week
MEDIUM 5.3REMOTEUPGRADE

CVE-2022-21222 is a medium-severity flaw (CVSS 5.3) affecting css-what. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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.

Why this priority

  • Public exploit reference
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score5.3 (Medium)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance1.9% (top 20%)
CISA exploited listNo
WeaknessCWE-1333
Published2022-09-30
Last modified2026-06-17
Publisher (CNA): Snyk · Vendor: css-what project

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

css-what project css-what UPGRADE
Affected: < 2.1.3
Fixed in: 2.1.3
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls css-what
2. UPGRADE to 2.1.3
npm install css-what@">=2.1.3"
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2022-21222?

css-what: upgrade to 2.1.3. Exact commands for each OS are on this page.

Is CVE-2022-21222 being exploited?

CVE-2022-21222 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2022-21222 affect?

CVE-2022-21222 affects css-what. Severity is medium (CVSS 5.3). 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

How urgent is CVE-2022-21222?

Priority 48/100. Public exploit reference; Remotely exploitable, no login, no user action

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.