MediumGHSA-hwj9-h5mp-3pm3CVE-2021-23368

Regular Expression Denial of Service in postcss

Published 10 May 2021 · Updated 14 Jan 2025

Affected packages

Affected
>=7.0.0 <7.0.36
Fixed in
7.0.36
Update to the fixed version for your release line, for example:npm install postcss@7.0.36
Affected
>=8.0.0 <8.2.10
Fixed in
8.2.10
Update to the fixed version for your release line, for example:npm install postcss@8.2.10

Details

The npm package postcss from 7.0.0 and before versions 7.0.36 and 8.2.10 is vulnerable to Regular Expression Denial of Service (ReDoS) during source map parsing.

Is GHSA-hwj9-h5mp-3pm3 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected postcss, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.