{"api_version":"1","generated_at":"2026-04-23T15:12:30+00:00","cve":"CVE-2022-21222","urls":{"html":"https://cve.report/CVE-2022-21222","api":"https://cve.report/api/cve/CVE-2022-21222.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-21222","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-21222"},"summary":{"title":"CVE-2022-21222","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.","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2022-09-30 05:15:00","updated_at":"2023-08-08 14:22:00"},"problem_types":["CWE-1333"],"metrics":[],"references":[{"url":"https://github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js%23L12","name":"N/A","refsource":"CONFIRM","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":""},{"url":"https://security.snyk.io/vuln/SNYK-JS-CSSWHAT-3035488","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Regular Expression Denial of Service (ReDoS) in css-what | CVE-2022-21222 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00001.html","name":"[debian-lts-announce] 20230303 [SECURITY] [DLA 3350-1] node-css-what security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3350-1] node-css-what security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js#L12","name":"MISC:https://github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js%23L12","refsource":"MITRE","tags":[],"title":"css-what/index.js at a38effd5a8f5506d75c7f8f13cbd8c76248a3860 · fb55/css-what · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-21222","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21222","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Snyk Research Team","lang":""}],"nvd_cpes":[{"cve_year":"2022","cve_id":"21222","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"css-what_project","cpe5":"css-what","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-21222","qid":"181124","title":"Debian Security Update for node-css-what (CVE-2022-21222)"},{"cve":"CVE-2022-21222","qid":"181619","title":"Debian Security Update for node-css-what (DLA 3350-1)"},{"cve":"CVE-2022-21222","qid":"199479","title":"Ubuntu Security Notification for css-what Vulnerabilities (USN-6065-1)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-09-30T05:00:10.355580Z","ID":"CVE-2022-21222","STATE":"PUBLIC","TITLE":"Regular Expression Denial of Service (ReDoS)"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"css-what","version":{"version_data":[{"version_affected":"<","version_value":"2.1.3"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Regular Expression Denial of Service (ReDoS)"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://security.snyk.io/vuln/SNYK-JS-CSSWHAT-3035488","name":"https://security.snyk.io/vuln/SNYK-JS-CSSWHAT-3035488"},{"refsource":"MISC","url":"https://github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js%23L12","name":"https://github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js%23L12"},{"refsource":"MLIST","name":"[debian-lts-announce] 20230303 [SECURITY] [DLA 3350-1] node-css-what security update","url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00001.html"}]},"description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","baseScore":5.3,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"LOW"}},"credit":[{"lang":"eng","value":"Snyk Research Team"}]},"nvd":{"publishedDate":"2022-09-30 05:15:00","lastModifiedDate":"2023-08-08 14:22:00","problem_types":["CWE-1333"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:css-what_project:css-what:*:*:*:*:*:node.js:*:*","versionEndExcluding":"2.1.3","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}