{"id":"UBUNTU-CVE-2021-23382","details":"The package postcss before 8.2.13 are vulnerable to Regular Expression Denial of Service (ReDoS) via getAnnotationURL() and loadAnnotation() in lib/previous-map.js. The vulnerable regexes are caused mainly by the sub-pattern \\/\\*\\s* sourceMappingURL=(.*).","modified":"2025-10-24T04:50:08Z","published":"2021-04-26T16:15:00Z","upstream":["CVE-2021-23382"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-23382"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JS-POSTCSS-1255640"},{"type":"REPORT","url":"https://github.com/postcss/postcss/commit/2ad1ca9b965dde32223bee28dc259c339cbaaa05"},{"type":"REPORT","url":"https://github.com/postcss/postcss/commit/2b1d04c867995e55124e0a165b7c6622c1735956"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1255641"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-23382"}],"affected":[{"package":{"name":"node-postcss","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/node-postcss@6.0.23-3?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.0.23-1","6.0.23-3"],"ecosystem_specific":{"binaries":[{"binary_name":"node-postcss","binary_version":"6.0.23-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23382.json"}},{"package":{"name":"node-postcss","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-postcss@8.4.6+~cs7.3.21-1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.2.1+~cs5.3.23-8","8.4.5+~cs7.1.51-2","8.4.6+~cs7.3.21-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-postcss","binary_version":"8.4.6+~cs7.3.21-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23382.json"}}],"schema_version":"1.7.3","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"}]}