{"id":"CVE-2022-21222","aliases":["CVE-2022-21222","GHSA-p28h-cc7q-c4fg"],"related":[],"kind":"vulnerability","state":"published","title":"Regular Expression Denial of Service (ReDoS)","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"The package css-what before 2.1.3 is vulnerable to Regular Expression Denial of Service (ReDoS) due to the use of insecure regular expression in the `re_attr` variable of index.js. The exploitation of this vulnerability could be triggered via the parse function.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete css-what versiones anteriores a 2.1.3, es vulnerable a una Denegación de Servicio por Expresión Regular (ReDoS) debido al uso de una expresión regular no segura en la variable re_attr del archivo index.js. La explotación de esta vulnerabilidad podría desencadenarse por medio de la función parse","source":"nvd"}],"published":"2022-09-30T05:05:11.059Z","modified":"2026-06-17T04:25:46.883Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400","CWE-1333"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"2.1.3","status":"affected"}],"product":"css-what","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.3"}],"ecosystem":"npm","package":"css-what","purl":"pkg:npm/css-what","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.1.3"}],"vendor":"css-what_project","product":"css-what","cpe":"cpe:2.3:a:css-what_project:css-what:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-CSSWHAT-3035488","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js%23L12","tags":["broken-link","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00001.html","tags":["mailing-list","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21222","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/fb55/css-what/commit/dc510929790da6617e7aa93a616498b22f6a6b72","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fb55/css-what","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js#23L12","tags":["web"],"sources":["ghsa"]}],"credits":["Snyk Research Team"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-05-20T16:03:52.139Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-21222","url":"https://www.cve.org/CVERecord?id=CVE-2022-21222","licence":"CVE Terms of Use","modified":"2025-05-20T16:04:07.202Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p28h-cc7q-c4fg","url":"https://github.com/advisories/GHSA-p28h-cc7q-c4fg","licence":"CC-BY-4.0","modified":"2025-05-20T21:02:33.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-21222","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21222","licence":"Public domain","modified":"2026-06-17T04:25:46.883Z"}],"updatedAt":"2026-11-25T22:58:15.379Z","epss":{"score":0.02032,"percentile":0.81624,"date":"2026-12-01T12:00:22.000Z"}}