# CVE-2021-23382: Regular Expression Denial of Service (ReDoS)

- Severity: Medium 5.3 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.58%, higher than 85% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-04-26T15:30:26.301Z
- Modified: 2026-06-17T03:38:39.613Z
- Also known as: GHSA-566m-qj78-rww5
- Weaknesses: CWE-400, CWE-1333
- Assigned by: snyk

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

(As written by CVE List.)

## Affected

- postcss: from unspecified before 8.2.13
- postcss (npm): from 8.0.0 before 8.2.13; before 7.0.36
- postcss postcss: before 7.0.36; from 8.0.0 before 8.2.13

## Every score

- snyk: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-POSTCSS-1255640> (exploit, patch, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1255641> (exploit, patch, third-party-advisory, web)
- <https://github.com/postcss/postcss/commit/2b1d04c867995e55124e0a165b7c6622c1735956> (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)

## Sources

- CVE List: [CVE-2021-23382](https://www.cve.org/CVERecord?id=CVE-2021-23382), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-566m-qj78-rww5](https://github.com/advisories/GHSA-566m-qj78-rww5), CC-BY-4.0, modified 2025-01-14
- NVD: [CVE-2021-23382](https://nvd.nist.gov/vuln/detail/CVE-2021-23382), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23382 · Whole record: https://cve.day/CVE-2021-23382.json · Rebuilt by cve.day 2026-11-25T22:58:01.037Z
