Regular expression denial of service (ReDoS) in css-what
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 11 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-1333.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | css-what | before 2.1.3 | 2.1.3 | Patch available | CNA |
| — | css-what (npm) | before 2.1.3 | 2.1.3 | Patch available | GHSA-p28h-cc7q-c4fg |
- css-what Vendor— Affected before 2.1.3 Fixed in 2.1.3 Patch available CNA
- css-what (npm) Vendor— Affected before 2.1.3 Fixed in 2.1.3 Patch available GHSA-p28h-cc7q-c4fg
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:css-what_project:css-what:*:*:*:*:*:node.js:*:* | before 2.1.3 | Vulnerable | Css-what Project |
- cpe:2.3:a:css-what_project:css-what:*:*:*:*:*:node.js:*:* Versions before 2.1.3 Vulnerable ·Css-what Project
Remediation
- Fix · CNA css-what Fixed in 2.1.3
- Fix · GHSA-p28h-cc7q-c4fg css-what (npm) Fixed in 2.1.3 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Service Mesh 2.0 | Affected | No fix yet |
| OpenShift Service Mesh 2.1 | Affected | No fix planned: Will not fix |
| Red Hat Decision Manager 7 | Affected | No fix planned: Out of support scope |
| Red Hat Fuse 7 | Affected | No fix planned: Will not fix |
| Red Hat Integration Service Registry | Affected | No fix planned: Will not fix |
| Red Hat JBoss Data Grid 7 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Enterprise Application Platform 6 | Affected | No fix planned: Out of support scope |
| Red Hat OpenShift Container Platform 3.11 | Affected | No fix planned: Out of support scope |
| Red Hat OpenShift Container Platform 4 | Affected | No fix planned: Will not fix |
| Red Hat Process Automation 7 | Affected | No fix planned: Out of support scope |
| Red Hat build of Apicurio Registry 2 | Affected | No fix yet |
Not affected: 25 products
- Logging Subsystem for Red Hat OpenShift
- Migration Toolkit for Containers
- Migration Toolkit for Runtimes
- Migration Toolkit for Virtualization
- OpenShift Developer Tools and Services
- OpenShift Service Mesh 2
- OpenShift Service Mesh 2.0
- OpenShift Service Mesh 2.1
- Red Hat A-MQ Online
- Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat Advanced Cluster Security 3
- Red Hat Ansible Automation Platform 2
- Red Hat Data Grid 8
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Integration Camel K 1
- Red Hat JBoss Enterprise Application Platform 7
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat OpenShift Dev Spaces
- Red Hat OpenShift GitOps
- Red Hat OpenShift Virtualization 4
- Red Hat OpenShift distributed tracing 2
- Red Hat Openshift Container Storage 4
- Red Hat Openshift Data Foundation 4
- Red Hat Satellite 6
Timeline
- 2026-10-02 Threatist record created from CVE-2022-21222
- 2026-10-03 Alias added: GHSA-p28h-cc7q-c4fg
References
Advisory 2
More Css-what Project Css-what vulnerabilities
- TI-2021-12971 The css-what package 4.0.0 through 5.0.0 for Node.js does not ensure that attribute… CVSS 3.1HIGH 7.5
Sources
- CVE-2022-21222 · CVE Program
- CVE-2022-21222 · NVD
- FIRST EPSS
- GHSA-p28h-cc7q-c4fg · GitHub Advisory Database · CC BY 4.0
- CVE-2022-21222 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences