CVE-2022-21222 json
Regular Expression Denial of Service (ReDoS)
published 2022-09-30 4 y ago modified 2026-06-17 4 mo ago also GHSA-p28h-cc7q-c4fg , EUVD-2022-7138
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm css-what 2.1.3
- n/a css-what 2.1.3
- node-css-what Debian 14, Debian 13, Debian 12 5.0.1-1
debian advisories DEBIAN-CVE-2022-21222
- node-css-what Ubuntu 18.04 LTS 2.1.0-1+deb10u1build0.18.04.1
- node-css-what Ubuntu Pro 16.04 LTS 2.1.0-1ubuntu0.16.04.1~esm1
- node-css-what Ubuntu Pro 20.04 LTS 3.2.1-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2022-21222
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-21222 updated cvss 7.5
css-what: ReDoS due to insecure regular expression
-
Red Hat OpenShift Service Mesh 2.0 servicemesh-grafana, servicemesh-grafana-prometheusaffected: no fix available
-
Red Hat OpenShift Service Mesh 2.1 servicemesh-grafanaaffected: no fix planned “Will not fix”
-
Red Hat build of Apicurio Registry 2 css-whataffected: no fix available
-
Red Hat Decision Manager 7 css-whataffected: no fix planned “Out of support scope”
-
Red Hat Fuse 7 css-what Red Hat Integration Service Registry css-whataffected: no fix planned “Will not fix”
-
Red Hat JBoss Data Grid 7 css-what Red Hat JBoss Enterprise Application Platform 6 css-what Red Hat OpenShift Container Platform 3.11 openshift3/ose-consoleaffected: no fix planned “Out of support scope”
-
Red Hat OpenShift Container Platform 4 openshift4/ose-consoleaffected: no fix planned “Will not fix”
-
Red Hat Process Automation 7 css-whataffected: no fix planned “Out of support scope”
show 1 moreshow fewer
-
Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/logging-view-plugin-rhel9 Red Hat Migration Toolkit for Containers rhmtc/openshift-migration-ui-rhel8 Red Hat Migration Toolkit for Runtimes css-what Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-ui-rhel8 Red Hat OpenShift Developer Tools and Services odo Red Hat OpenShift Service Mesh 2 openshift-service-mesh/kiali-rhel8not affected: vulnerable code not present
+19 more productsfewer
Red Hat OpenShift Service Mesh 2.0 servicemesh-prometheus, openshift-service-mesh/kiali-rhel8 Red Hat OpenShift Service Mesh 2.1 servicemesh-prometheus, openshift-service-mesh/kiali-rhel8 Red Hat A-MQ Online css-what Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/grc-ui-rhel8, rhacm2/console-rhel8, rhacm2/search-ui-rhel8, rhacm2/application-ui-rhel8, rhacm2/kui-web-terminal-rhel8 Red Hat Advanced Cluster Security 3 advanced-cluster-security/rhacs-docs-rhel8, advanced-cluster-security/rhacs-main-rhel8, advanced-cluster-security/rhacs-roxctl-rhel8, advanced-cluster-security/rhacs-rhel8-operator Red Hat Ansible Automation Platform 2 aap-azure-ui Red Hat Data Grid 8 css-what Red Hat Enterprise Linux 8 pcs, grafana, pcs-snmp, grafana-loki, grafana-mssql, grafana-mysql, +10 more Red Hat Enterprise Linux 9 grafana, grafana-selinux Red Hat Integration Camel K 1 css-what Red Hat JBoss Enterprise Application Platform 7 css-what Red Hat JBoss Enterprise Application Platform Expansion Pack css-what Red Hat Openshift Container Storage 4 ocs4/mcg-core-rhel8 Red Hat Openshift Data Foundation 4 odf4/mcg-core-rhel9, noobaa-core-container, odf4/odf-console-rhel9, odf4/odf-multicluster-console-rhel8 Red Hat OpenShift Dev Spaces devspaces-theia-rhel8-container Red Hat OpenShift distributed tracing 2 rhosdt/jaeger-agent-rhel8 Red Hat OpenShift GitOps openshift-gitops-1/argocd-rhel8 Red Hat OpenShift Virtualization 4 container-native-virtualization/kubevirt-console-plugin Red Hat Satellite 6 rubygem-rabl, tfm-rubygem-rabl
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 17 mo ago
Exploit prediction
1.90% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- security.snyk.io https://security.snyk.io/vuln/SNYK-JS-CSSWHAT-3035488 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 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 |
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | css-what | <2.1.3 |
2.1.3 |
Affected products
- n/a css-what
Classification
References
-
github.com
/fb55/css-what/commit/dc510929790da6617e7aa93a616498b22f6a6b72
web
-
security.snyk.io
/vuln/SNYK-JS-CSSWHAT-3035488
web, exploit, third-party-advisory
-
github.com
/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js%23L12
web, broken-link, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2023/03/msg00001.html
mailing-list, web
-
nvd.nist.gov
/vuln/detail/CVE-2022-21222
advisory
-
github.com
/fb55/css-what
package
-
github.com
/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js#23L12
web
Sources
- CVE List CVE-2022-21222
- GitHub Advisory GHSA-p28h-cc7q-c4fg
- NVD CVE-2022-21222
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.