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=(.*).
References
Link | Resource |
---|---|
https://github.com/postcss/postcss/commit/2b1d04c867995e55124e0a165b7c6622c1735956 | Patch Third Party Advisory |
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1255641 | Exploit Patch Third Party Advisory |
https://snyk.io/vuln/SNYK-JS-POSTCSS-1255640 | Exploit Patch Third Party Advisory |
Configurations
Configuration 1 (hide)
|
Information
Published : 2021-04-26 09:15
Updated : 2022-09-19 10:29
NVD link : CVE-2021-23382
Mitre link : CVE-2021-23382
JSON object : View
CWE
Products Affected
postcss
- postcss