CVE-2023-44270
Postcss vulnerability
An issue was discovered in PostCSS before 8.4.31. The vulnerability affects linters using PostCSS to parse external untrusted CSS. An attacker can prepare CSS in such a way that it will contains parts parsed by PostCSS as a CSS comment. After processing by PostCSS, it will be included in the PostCSS output in CSS nodes (rules, properties) despite being included in a comment.
Affected products
Postcss. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Postcss runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- nvd.nist.gov/vuln/detail/CVE-2023-44270
- github.com/postcss/postcss/commit/58cc860b4c1707510c9cd1bc1fa30b423a9ad6c5
- github.com/postcss/postcss/blob/main/lib/tokenize.js#L25
- github.com/postcss/postcss/releases/tag/8.4.31
- github.com/github/advisory-database/issues/2820
- lists.debian.org/debian-lts-announce/2024/12/msg00025.html
- github.com/advisories/GHSA-7fh5-64p2-3v2j
- nvd.nist.gov/vuln/detail/CVE-2023-44270
- cve.org/CVERecord?id=CVE-2023-44270
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.