CVE-2026-45623
PostCSS takes a CSS file and provides an API to analyze and modify …
PostCSS takes a CSS file and provides an API to analyze and modify its rules by transforming the rules into an Abstract Syntax Tree. In versions 8.5.11 and prior, the PreviousMap parses the /*# sourceMappingURL=PATH */ comment from any CSS string passed to process() and dereferences PATH against the local filesystem with no scheme, allowlist, or traversal check. An attacker who controls the CSS input can cause the host process to read any file readable by Node and leak the first ~10 bytes of its content through the resulting JSON.parse SyntaxError message. The bug also yields a precise file-existence oracle and a controllable-read primitive that may be combined with large-file targets for DoS. The behaviour is triggered with PostCSS's default options — no from, no map, no plugins required — and is therefore reachable from any pipeline that runs untrusted CSS through PostCSS (CMS themes, user-uploaded styles, browser-extension/userstyle processors, build pipelines for third-party packages, blog comment renderers, etc.). This issue has been fixed in version 8.5.12.
What to do now
- Check your exposureFind out whether the affected software 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
- github.com/postcss/postcss/security/advisories/GHSA-6g55-p6wh-862q
- github.com/postcss/postcss/commit/aaec7b78b3ce2792585b4b300ef1bd5dd5b3e8ad
- github.com/postcss/postcss/commit/c64b7488d2731dfa16213739b42c34faf5a9eba3
- github.com/postcss/postcss/releases/tag/8.5.12
- github.com/advisories/GHSA-6g55-p6wh-862q
- nvd.nist.gov/vuln/detail/CVE-2026-45623
- cve.org/CVERecord?id=CVE-2026-45623
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.