REDHAT-BUG-2517456: High severity npm/postcss vulnerability

Published Aug 17, 2026
·
Updated

PostCSS takes a CSS file and provides an API to analyze and modify its rules by transforming the rules into an Abstract Syntax Tree. Prior to 8.5.18, lib/previous-map.js loadMap() passes attacker-controlled sourceMappingURL values to join(dirname(opts.from), annotation), and loadFile() permits traversed or absolute .map paths, allowing untrusted CSS processed without map: false to disclose sourcesContent from arbitrary reachable .map files through result.map. This issue is fixed in version 8.5.18.

Affected Software

1 affected component
npm/postcss<8.5.18

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.5.18

Event History

Aug 17, 2026
Data Sourced
via Red Hat·03:47 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using npm/postcss before 8.5.18 are exposed when they process untrusted CSS and do not disable source map handling with map: false. The disclosure is limited to reachable .map files whose contents can be returned through result.map.

2

What does an attacker need to exploit it?

An attacker needs control of a CSS file processed by PostCSS, including its sourceMappingURL annotation. They can use traversal or an absolute path to cause PostCSS to load a reachable .map file.

3

Are default source map settings affected?

The issue affects processing of untrusted CSS unless map: false is set. Disabling maps prevents the vulnerable sourceMappingURL handling described here.

4

What can be done before upgrading?

Upgrade PostCSS to 8.5.18. If upgrading is not immediately possible, do not process untrusted CSS, or process it with map: false.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203