Regular Expression Denial of Service (ReDoS) in postcss before 8.2.13 via getAnnotationURL() and loadAnnotation() in lib/previous-map.js

Regular Expression Denial of Service (ReDoS) in postcss before 8.2.13 via getAnnotationURL() and loadAnnotation() in lib/previous-map.js

CVE-2021-23382 · HIGH Severity

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

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=(.*).

Learn more about our Web Application Penetration Testing UK.