VDB

CVE-2022-21222

CVE-2022-21222 PUBLISHED CVSS 5.3 MEDIUM

Regular Expression Denial of Service (ReDoS)

Reported by snyk · Published September 30, 2022

css-what is fixed in 2.1.3 (npm)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
css-whatnpm2.1.3
css-whatcss-what_project2.1.3
css-whatn/a2.1.3

Risk scores

CVSS 3.1
5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P

Affected products

VendorProductVersions
n/acss-whatunspecified
n/acss-what*
css-what_projectcss-what
npmcss-what0

Timeline

  • Sep 30, 2022 EPSS Score (30 in total, the first dated here)
  • Sep 30, 2022 CVE Published
  • Mar 9, 2026 Security Advisory
  • Jun 17, 2026 CVE Updated
  • Jul 8, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-21222
vulnetix vdb fixes CVE-2022-21222

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-21222/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›