Vulnerabilities/

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

Severity:
Medium

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:

References

Related Issues

Tags:
npm
postcss
Anything's wrong? Let us know Last updated on August 03, 2026