ZeroHour

CVE-2026-69153

PoC mass

Directory Traversal in PostCSS Source-Map Loader Exposes Source Contents

CVSS 4.0
6.3 medium
EPSS
<1%p38
Published
()
Modified
AI analysis

PostCSS before 8.5.19 contains a path-traversal and information-exposure flaw in PreviousMap.loadFile(): when the 'from' option is unset, the library resolves an attacker-controlled sourceMappingURL without confining it to the CSS file's directory, accepting absolute paths or directory-traversal sequences. An application that parses untrusted CSS under these conditions can be made to read an unintended or attacker-chosen source-map file from the local filesystem. The loaded map's 'sources' and 'sourcesContent' fields, which typically embed original source code and internal file paths, may then be exposed to the application and potentially leaked to the attacker. Any application or build pipeline using PostCSS prior to 8.5.19 to process untrusted CSS with 'from' unset is affected, while deployments that always set 'from' or only handle trusted local CSS are not. No exploitation in the wild is currently reported (EPSS 0.5%, not in CISA KEV), but a public advisory with a proof-of-concept reference is available on the project's GitHub.

What to do: Upgrade PostCSS to 8.5.19 or later and refresh lockfiles/rebuild affected applications and CI pipelines. As an interim mitigation, always set the 'from' option when parsing untrusted CSS, and audit services that accept user-supplied CSS (e.g., online converters or editors) for possible disclosure of source-map contents.

Affected
postcssAll versions prior to 8.5.19 (fixed in 8.5.19)
Estimated exposure
massmillions of installed copies (tens of millions of weekly npm downloads), though only apps parsing untrusted CSS with 'from' unset are actually exploitable — PostCSS is one of the npm ecosystem's most-downloaded packages and a default dependency of common bundler and CSS-framework toolchains, implying millions of installations; however, the vulnerable code path requires applications to process…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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. Prior to 8.5.19, if from is unset, an attacker can cause PreviousMap.loadFile() to read an unintended source-map file by supplying an absolute or directory-traversal sourceMappingURL. The resulting map’s sources and sourcesContent may then be exposed to the application. This issue is fixed in version 8.5.19.

Vendors
postcss
Products
postcss
Weakness
CWE-22, CWE-200
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.