{"id":"UBUNTU-CVE-2022-21222","details":"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.","modified":"2026-05-20T16:07:37.487503829Z","published":"2022-09-30T05:15:00Z","related":["USN-6065-1"],"upstream":["CVE-2022-21222"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-21222"},{"type":"REPORT","url":"https://security.snyk.io/vuln/SNYK-JS-CSSWHAT-3035488"},{"type":"REPORT","url":"https://github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js%23L12"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6065-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-21222"}],"affected":[{"package":{"name":"node-css-what","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/node-css-what?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-1ubuntu0.16.04.1~esm1"}]}],"versions":["2.0.2-1","2.1.0-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"node-css-what","binary_version":"2.1.0-1ubuntu0.16.04.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21222.json"}},{"package":{"name":"node-css-what","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/node-css-what?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-1+deb10u1build0.18.04.1"}]}],"versions":["2.1.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-css-what","binary_version":"2.1.0-1+deb10u1build0.18.04.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21222.json"}},{"package":{"name":"node-css-what","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/node-css-what?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.1-1ubuntu0.1~esm1"}]}],"versions":["3.1.0-2","3.2.0-1","3.2.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.2.1-1ubuntu0.1~esm1","binary_name":"node-css-what"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21222.json"}},{"package":{"name":"node-css-what","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-css-what?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.1.0-5"],"ecosystem_specific":{"binaries":[{"binary_version":"6.1.0-5","binary_name":"node-css-what"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21222.json"}},{"package":{"name":"node-css-what","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-css-what?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.1.0-5"],"ecosystem_specific":{"binaries":[{"binary_name":"node-css-what","binary_version":"6.1.0-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21222.json"}},{"package":{"name":"node-css-what","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/node-css-what?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.1.0-5"],"ecosystem_specific":{"binaries":[{"binary_name":"node-css-what","binary_version":"6.1.0-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21222.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}