CVE-2021-23382 Regular Expression Denial of Service (ReDoS)
HighCVSS 7.5
EPSS 2.6%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
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=(.*).
Upgrade path
7 packages: 5 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/node-postcss(Ubuntu 20.04) | = 6.0.23-1; = 6.0.23-3; All versions | No fix listed | No fix yet |
| ubuntu/node-postcss(Ubuntu 22.04) | = 8.2.1+~cs5.3.23-8; = 8.4.5+~cs7.1.51-2; = 8.4.6+~cs7.3.21-1; All versions | No fix listed | No fix yet |
| debian/node-postcss(Debian 12) | < 8.2.1+~cs5.3.23-7 | 8.2.1+~cs5.3.23-7 | Fixed |
| debian/node-postcss(Debian 13) | < 8.2.1+~cs5.3.23-7 | 8.2.1+~cs5.3.23-7 | Fixed |
| debian/node-postcss(Debian 14) | < 8.2.1+~cs5.3.23-7 | 8.2.1+~cs5.3.23-7 | Fixed |
| npm postcss(npm) | < 7.0.36; >= 8.0.0, < 8.2.13 | 7.0.36, 8.2.13 | Fixed |
| postcss | < 7.0.36; >= 8.0.0, < 8.2.13 | 7.0.36, 8.2.13 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm postcss(npm) | >= 8.0.0, < 8.2.13 | 8.2.13 |
| npm postcss(npm) | < 7.0.36 | 7.0.36 |
| debian/node-postcss(Debian:12) | < 8.2.1+~cs5.3.23-7 | 8.2.1+~cs5.3.23-7 |
| debian/node-postcss(Debian:13) | < 8.2.1+~cs5.3.23-7 | 8.2.1+~cs5.3.23-7 |
| debian/node-postcss(Debian:14) | < 8.2.1+~cs5.3.23-7 | 8.2.1+~cs5.3.23-7 |
| ubuntu/node-postcss(Ubuntu:22.04) | All versions | No fix listed |
| postcss | < 7.0.36 | 7.0.36 |
| postcss | >= 8.0.0, < 8.2.13 | 8.2.13 |
| ubuntu/node-postcss(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/node-postcss(Ubuntu:20.04) | = 6.0.23-1 | No fix listed |
| ubuntu/node-postcss(Ubuntu:20.04) | = 6.0.23-3 | No fix listed |
| ubuntu/node-postcss(Ubuntu:22.04) | = 8.2.1+~cs5.3.23-8 | No fix listed |
| ubuntu/node-postcss(Ubuntu:22.04) | = 8.4.5+~cs7.1.51-2 | No fix listed |
| ubuntu/node-postcss(Ubuntu:22.04) | = 8.4.6+~cs7.3.21-1 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch third-party-advisory
- snyk.io exploit issue-tracking patch third-party-advisory
- snyk.io exploit issue-tracking patch third-party-advisory
- github.com
- github.com
- Debian Security Tracker CVE-2021-23382 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- github.com issue-tracking