# CVE-2022-21222: Regular Expression Denial of Service (ReDoS)

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-09-30 · Modified: 2025-05-20
- Aliases: UBUNTU-CVE-2022-21222, DEBIAN-CVE-2022-21222, GHSA-p28h-cc7q-c4fg
- Record: https://cvemate.com/vulnerability/CVE-2022-21222 · JSON: https://cvemate.com/vulnerability/CVE-2022-21222/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 2.032%, percentile 81.726%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- css-what\_project css-what: \< 2.1.3
- debian node-css-what (Debian): \< 5.0.1-1
- ubuntu node-css-what (Ubuntu): All versions (No fix recorded) \| \< 2.1.0-1ubuntu0.16.04.1~esm1 \| \< 2.1.0-1+deb10u1build0.18.04.1 \| \< 3.2.1-1ubuntu0.1~esm1
- Npm css-what (Npm): \< 2.1.3

## References

- <https://security.snyk.io/vuln/SNYK-JS-CSSWHAT-3035488>
- <https://github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js%23L12>
- <https://lists.debian.org/debian-lts-announce/2023/03/msg00001.html>
- <https://ubuntu.com/security/CVE-2022-21222>
- <https://ubuntu.com/security/notices/USN-6065-1>
- <https://www.cve.org/CVERecord?id=CVE-2022-21222>
- <https://security-tracker.debian.org/tracker/CVE-2022-21222>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21222>
- <https://github.com/fb55/css-what/commit/dc510929790da6617e7aa93a616498b22f6a6b72>
- <https://github.com/fb55/css-what>
- <https://github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js#23L12>

---

Data as of 2026-12-05T08:38:25.080Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
