{"id":"CVE-2026-45623","published":"2026-07-27T17:23:13Z","modified":"2026-07-27T17:44:31Z","title":"PostCSS: Arbitrary file read and information disclosure via attacker-controlled sourceMappingURL in CSS comments","vendor":"postcss","product":"postcss","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00608,"percentile":0.43194,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/postcss/postcss/security/advisories/GHSA-6g55-p6wh-862q","tags":["x_refsource_CONFIRM"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":8.64},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"postcss","affectedVersions":[{"vendor":"postcss","product":"postcss","versions":["< 8.5.12"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-27T17:44:10.727948Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"postcss","vulnerableRanges":["<8.5.12"],"patched":["8.5.12"],"from":["GHSA-6g55-p6wh-862q"],"provenance":"source"}],"summary":{"text":"PostCSS's PreviousMap component, in versions 8.5.11 and earlier, parses a /*# sourceMappingURL=PATH */ comment from any CSS passed to process() and resolves PATH against the local filesystem without restriction. An attacker who can supply CSS to a PostCSS pipeline, requiring no authentication, user interaction, or non-default configuration, can read arbitrary files the Node process can access, leaking roughly the first ten bytes of each through the resulting JSON parse error, and can also use the behaviour to probe file existence or cause denial of service through large-file reads.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:04Z"},"euvd":{"id":"EUVD-2026-49376","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-postcss-cve-2021-23368","parents":[{"from":"CVE-2021-23368","to":"CVE-2026-45623","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/previous-map.js"],"commits":["https://github.com/postcss/postcss/commit/b6f3e4d5a8d7504d553267f80384373af3a3dec5","https://github.com/postcss/postcss/commit/8682b1e4e328432ba692bed52326e84439cec9e4","https://github.com/postcss/postcss/commit/aaec7b78b3ce2792585b4b300ef1bd5dd5b3e8ad","https://github.com/postcss/postcss/commit/c64b7488d2731dfa16213739b42c34faf5a9eba3"],"basis":"shared function","functions":["PreviousMap"]}]},{"from":"CVE-2021-23382","to":"CVE-2026-45623","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/previous-map.js"],"commits":["https://github.com/postcss/postcss/commit/2b1d04c867995e55124e0a165b7c6622c1735956","https://github.com/postcss/postcss/commit/aaec7b78b3ce2792585b4b300ef1bd5dd5b3e8ad","https://github.com/postcss/postcss/commit/c64b7488d2731dfa16213739b42c34faf5a9eba3"],"basis":"shared function","functions":["PreviousMap"]}]}],"children":[{"from":"CVE-2026-45623","to":"CVE-2026-73646","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:postcss","fromFixed":"8.5.12","toFixed":"8.5.18","daysApart":21},{"kind":"same-code","provenance":"machine","files":["lib/postcss.d.ts","lib/previous-map.js"],"commits":["https://github.com/postcss/postcss/commit/aaec7b78b3ce2792585b4b300ef1bd5dd5b3e8ad","https://github.com/postcss/postcss/commit/c64b7488d2731dfa16213739b42c34faf5a9eba3","https://github.com/postcss/postcss/commit/95663d3eb7ba26f4854dd19d3b4f4425760cf56c"],"basis":"shared function","functions":["PreviousMap"]},{"kind":"similar","provenance":"machine","score":0.4,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2021-23382","published":"2021-04-26","fixed":"8.2.13","kev":false},{"cve":"CVE-2023-44270","published":"2023-09-29","fixed":"8.4.31","kev":false},{"cve":"CVE-2026-41305","published":"2026-04-24","fixed":"8.5.10","kev":false,"link":{"from":"CVE-2026-41305","to":"CVE-2026-45623","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:postcss","fromFixed":"8.5.10","toFixed":"8.5.12","daysApart":94}]}},{"cve":"CVE-2026-45623","published":"2026-07-27","fixed":"8.5.12","kev":false},{"cve":"CVE-2026-73646","published":"2026-08-17","fixed":"8.5.18","kev":false},{"cve":"CVE-2026-69153","published":"2026-08-03","fixed":"8.5.23","kev":false}],"package":"npm:postcss"}}