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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-23T15:06:16.000Z
- Modified: 2026-09-10T03:51:10.752Z
- Also known as: GHSA-6g55-p6wh-862q
- Weaknesses: CWE-22, CWE-200
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- postcss postcss: < 8.5.12; before 8.5.12
- postcss (npm): before 8.5.12

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://github.com/postcss/postcss/security/advisories/GHSA-6g55-p6wh-862q> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/postcss/postcss/commit/aaec7b78b3ce2792585b4b300ef1bd5dd5b3e8ad> (web)
- <https://github.com/postcss/postcss/commit/c64b7488d2731dfa16213739b42c34faf5a9eba3> (web)
- <https://github.com/postcss/postcss> (package)
- <https://github.com/postcss/postcss/releases/tag/8.5.12> (web)

## Sources

- CVE List: [CVE-2026-45623](https://www.cve.org/CVERecord?id=CVE-2026-45623), CVE Terms of Use, modified 2026-07-27
- GitHub Advisory Database: [GHSA-6g55-p6wh-862q](https://github.com/advisories/GHSA-6g55-p6wh-862q), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-45623](https://nvd.nist.gov/vuln/detail/CVE-2026-45623), Public domain, modified 2026-08-07

---

Page: https://cve.day/CVE-2026-45623 · Whole record: https://cve.day/CVE-2026-45623.json · Rebuilt by cve.day 2026-11-25T22:59:30.219Z
