Vulnerability library
Security checkAugust 03, 2026

PostCSS: incomplete fix of GHSA-6g55-p6wh-862q — attacker-controlled sourceMappingURL reads arbitrary .map files when `f

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

Medium severitynpmpostcss

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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) { ... }.

Recommendation

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

  • Affected version(s): <= 8.5.22
  • Patched version(s): 8.5.23

References

Could your website be exposed too?

SmartScanner can check your website for PostCSS: incomplete fix of GHSA-6g55-p6wh-862q — attacker-controlled sourceMappingURL reads arbitrary .map files when `f and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated August 03, 2026