{"id":"CVE-2022-21222","published":"2022-09-30T05:05:11Z","modified":"2025-05-20T16:04:07Z","title":"Regular Expression Denial of Service (ReDoS)","vendor":null,"product":null,"tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02032,"percentile":0.81446,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-CSSWHAT-3035488","tags":[]},{"url":"https://github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js%23L12","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00001.html","tags":["mailing-list"]}],"priority":{"score":20.0,"factors":[{"name":"EPSS percentile","points":16.29},{"name":"CVSS severity","points":3.71}]},"affectedVersions":[{"vendor":"n/a","product":"css-what","versions":[">= unspecified, < 2.1.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-05-20T16:03:52.139564Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"css-what","vulnerableRanges":["<2.1.3"],"patched":["2.1.3"],"from":["GHSA-p28h-cc7q-c4fg"],"provenance":"source"}],"summary":{"text":"The css-what package before version 2.1.3 contains an insecure regular expression in the re_attr variable of its index.js file, which makes it vulnerable to Regular Expression Denial of Service. An attacker who can supply input to the parse function can trigger excessive processing time through that expression.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:42Z"},"euvd":{"id":"EUVD-2022-7138","exploited":false,"provenance":"source"}}