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

- Severity: Medium 5.3 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.03%, higher than 81% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-09-30T05:05:11.059Z
- Modified: 2026-06-17T04:25:46.883Z
- Also known as: GHSA-p28h-cc7q-c4fg
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- css-what: from unspecified before 2.1.3
- css-what (npm): before 2.1.3
- css-what_project css-what: before 2.1.3

## Every score

- snyk: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P`
- GitHub: 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`
- NVD: 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`

## References

- <https://security.snyk.io/vuln/SNYK-JS-CSSWHAT-3035488> (exploit, third-party-advisory, web)
- <https://github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js%23L12> (broken-link, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2023/03/msg00001.html> (mailing-list, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21222> (advisory)
- <https://github.com/fb55/css-what/commit/dc510929790da6617e7aa93a616498b22f6a6b72> (web)
- <https://github.com/fb55/css-what> (package)
- <https://github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js#23L12> (web)

## Sources

- CVE List: [CVE-2022-21222](https://www.cve.org/CVERecord?id=CVE-2022-21222), CVE Terms of Use, modified 2025-05-20
- GitHub Advisory Database: [GHSA-p28h-cc7q-c4fg](https://github.com/advisories/GHSA-p28h-cc7q-c4fg), CC-BY-4.0, modified 2025-05-20
- NVD: [CVE-2022-21222](https://nvd.nist.gov/vuln/detail/CVE-2022-21222), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-21222 · Whole record: https://cve.day/CVE-2022-21222.json · Rebuilt by cve.day 2026-11-25T22:58:15.379Z
