cve.bz

CVE-2022-21222 css-what project css-what

7.5 highExploit referenceEPSS 1.9%Fix available

High (7.5) in css-what project css-what. EPSS 1.9% estimated probability of exploitation activity in the next 30 days. Fixed in css-what 2.1.3.

On this page
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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.9% (unchanged from 1.9% a week ago; 1.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 80th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-05-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-21222 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-21222?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-21222?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-21222 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
css-what_project:css-whatbefore 2.1.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-p28h-cc7q-c4fgnpmcss-what<2.1.32.1.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10node-css-what2.1.0-1+deb10u1DLA-3350-1
Debian12, 13, 14node-css-what5.0.1-1DEBIAN-CVE-2022-21222
Ubuntu18.04:LTSnode-css-what2.1.0-1+deb10u1build0.18.04.1UBUNTU-CVE-2022-21222 USN-6065-1
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 morenode-css-whatno fix listedUBUNTU-CVE-2022-21222
UbuntuPro:16.04:LTSnode-css-what2.1.0-1ubuntu0.16.04.1~esm1UBUNTU-CVE-2022-21222 USN-6065-1
UbuntuPro:20.04:LTSnode-css-what3.2.1-1ubuntu0.1~esm1UBUNTU-CVE-2022-21222 USN-6065-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-view-plugin-rhel8Not affected
Migration Toolkit for Containersrhmtc/openshift-migration-ui-rhel8Not affected
Migration Toolkit for Runtimescss-whatNot affected
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-ui-rhel8Not affected
OpenShift Developer Tools and ServicesodoNot affected
OpenShift Service Mesh 2openshift-service-mesh/kiali-rhel8Not affected
OpenShift Service Mesh 2.0openshift-service-mesh/kiali-rhel8Not affected
OpenShift Service Mesh 2.0servicemesh-grafanaAffected
OpenShift Service Mesh 2.0servicemesh-prometheusNot affected
OpenShift Service Mesh 2.1openshift-service-mesh/kiali-rhel8Not affected
OpenShift Service Mesh 2.1servicemesh-grafanaWill not fix
OpenShift Service Mesh 2.1servicemesh-prometheusNot affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/application-ui-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/grc-ui-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/kui-web-terminal-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/search-ui-rhel8Not affected
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-docs-rhel8Not affected
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-main-rhel8Not affected
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-rhel8-operatorNot affected
30 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-21222.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON