Skip to content
OpenAdvisories
High · 7.5 CVE-2026-45623 EUVD-2026-49376GHSA-6g55-p6wh-862q

PostCSS: Arbitrary file read and information disclosure via attacker-controlled sourceMappingURL in CSS comments

Published Jul 27, 2026 · Updated Jul 27, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
postcss postcss < 8.5.12 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-postcss 8.5.12+~cs9.3.32-1 —
Debian 13 node-postcss No fix yet —
Debian 12 node-postcss No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-postcss No fix yet —
Ubuntu 26.04 LTS node-postcss No fix yet —
Ubuntu 24.04 LTS node-postcss No fix yet —
Ubuntu 22.04 LTS node-postcss No fix yet —
Ubuntu 20.04 LTS node-postcss No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 rh-podman-desktop 1.1.2-1.el10_2 RHSA-2026:57590
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed velociraptor 0.76.7.0.git145.b60ef1146-1.1 openSUSE-SU-2026:12070-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling langfuse-3-compat 3.225.7-r6 —
Wolfi rolling langfuse-3-worker 3.224.3-r0 —
Wolfi rolling nextcloud-server-33 33.0.7-r4 —
Wolfi rolling vitess-23 23.0.5-r5 —
Wolfi rolling vitess-24 24.0.2-r7 —
Wolfi rolling vitess-24-compat 24.0.3-r7 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm postcss < 8.5.12 8.5.12 GHSA-6g55-p6wh-862q

Advisories 5

References