Description
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.
Remediation
References
https://github.com/github/advisory-database/issues/2820
https://github.com/postcss/postcss/blob/main/lib/tokenize.js#L25
https://github.com/postcss/postcss/commit/58cc860b4c1707510c9cd1bc1fa30b423a9ad6c5
https://github.com/postcss/postcss/releases/tag/8.4.31
Related Vulnerabilities
CVE-2024-36401 Vulnerability in maven package org.geoserver.web:gs-web-app
CVE-2018-16491 Vulnerability in maven package org.webjars.npm:node.extend
CVE-2023-26135 Vulnerability in npm package flatnest
CVE-2022-25875 Vulnerability in npm package svelte
CVE-2022-21803 Vulnerability in maven package org.webjars.npm:nconf