Live threats

All CVEs / Postcss

CVE-2021-23382Postcss

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
2.6%
probability of exploitation in 30 days · percentile 86
Auth required
No
Published
Apr 26, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Postcss.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm postcss ≥ 8.0.0 < 8.2.13 8.2.13 npm install postcss@8.2.13
npm postcss < 7.0.36 7.0.36 npm install postcss@7.0.36

Per OSV / GitHub Advisories (GHSA-566m-qj78-rww5). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
postcsspostcss< 7.0.36
postcsspostcss≥ 8.0.0 < 8.2.13

Official sources

References

Links published by the sources. Open them with care.

  • github.com Patch Third Party Advisory
  • snyk.io Exploit Patch Third Party Advisory
  • snyk.io Exploit Patch Third Party Advisory