Vulnerability library
Security checkJuly 23, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmpostcss

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

PostCSS’s 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.

Recommendation

Update the postcss package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 8.5.11
  • Patched version(s): 8.5.12

References

Could your website be exposed too?

SmartScanner can check your website for PostCSS: Arbitrary file read and information disclosure via attacker-controlled sourceMappingURL in CSS comments and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated July 23, 2026