CVE-2021-23382
HIGH 7.5CVSS 3.1Regular Expression Denial of Service in postcss
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=(.*).
- Published
- 26 Apr 2021
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1333CWE-400
- Also known as
- GHSA-566m-qj78-rww5
- Sources
- NVDJSONOSV GHSA-566m-qj78-rww5JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | postcss | postcsscpe:2.3:a:postcss:postcss:*:*:*:*:*:node.js:*:* |
< 7.0.36 | 7.0.36 |
| NVD | postcss | postcsscpe:2.3:a:postcss:postcss:*:*:*:*:*:node.js:*:* |
>= 8.0.0, < 8.2.13 | 8.2.13 |
| OSV | npm | postcss | >= 8.0.0, < 8.2.13 | 8.2.13 |
| OSV | npm | postcss | < 7.0.36 | 7.0.36 |
References
- https://github.com/postcss/postcss/commit/2b1d04c867995e55124e0a165b7c6622c1735956 · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1255641 · Exploit, Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-POSTCSS-1255640 · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23382 · ADVISORY
- https://github.com/postcss/postcss/releases/tag/7.0.36 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 26 Apr 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 7 Jan 2022)