npm
CVE-2026-69153
PostCSS: incomplete fix of GHSA-6g55-p6wh-862q — attacker-controlled sourceMappingURL reads arbitrary .map files when `from` is unset
- Severity
- Medium
- Published
- 3 Aug 2026
- Last changed
- 10 Sept 2026
- Added to UpHeron
- 22 Oct 2026
- Fixed in
- 8.5.23
- Exploit chance
- 0.5% in the next 30 daysHigher than 39% of CVEs. EPSS by FIRST, 19 Nov 2026
- Also known as
- GHSA-fxqj-rqcc-2cmp
- Sources
- OSV.dev and GitHub
Description
The fix for GHSA-6g55-p6wh-862q added a guard in lib/previous-map.js PreviousMap.loadFile() that restricts an attacker-controlled sourceMappingURL (from a CSS comment) to a .map extension and, for untrusted maps, rejects .. traversal and absolute paths. The traversal/absolute rejection is nested inside if (cssFile) { ... }. When PostCSS is invoked without the from option, cssFile is falsy and that branch is skipped, leaving only the .map extension check.
PreviousMap is constructed by lib/input.js whenever pathAvailable && sourceMapAvailable (under Node with source-map available), independent of opts.from/opts.map (the constructor returns early only for opts.map === false). So postcss([]).process(css) on attacker CSS reaches loadFile with cssFile undefined, and an attacker /*# sourceMappingURL=/abs/path/x.map */ (or ../-traversing path) is read via readFileSync.
Affected software
| Software | Affected versions |
|---|---|
postcssnpm · osv:npm:postcss |
|
About postcss
- Weekly downloads (npm)
- 426,592,693npm, 17 Nov 2026
Vulnerabilities in postcss
- In our list
- 4
- Published in the last 12 months
- 4
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-73646PostCSS: Path Traversal in Previous Source Map Auto-Loading (sourceMappingURL) leads to Arbitrary .map File DisclosureHigh 7.5 24 Jul 2026
- CVE-2026-45623PostCSS: Arbitrary file read and information disclosure via attacker-controlled sourceMappingURL in CSS commentsHigh 7.5 23 Jul 2026
- CVE-2026-41305PostCSS has XSS via Unescaped </style> in its CSS Stringify OutputMedium 6.1 24 Apr 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-69153
- GitHub Advisory Database https://github.com/advisories/GHSA-fxqj-rqcc-2cmp