REDHAT-BUG-2510719: High severity PostCSS PostCSS vulnerability

Published Aug 3, 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.19, if from is unset, an attacker can cause PreviousMap.loadFile() to read an unintended source-map file by supplying an absolute or directory-traversal sourceMappingURL. The resulting map’s sources and sourcesContent may then be exposed to the application. This issue is fixed in version 8.5.19.

Affected Software

1 affected component
PostCSS PostCSS<8.5.19

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade PostCSS to a version that resolves this vulnerability.

    Fixed in 8.5.19

Event History

Aug 3, 2026
Data Sourced
via Red Hat·06:01 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using PostCSS versions prior to 8.5.19 are exposed when the `from` option is unset and an attacker can supply a CSS sourceMappingURL.

2

What must an attacker control to exploit the issue?

The attacker needs to provide an absolute-path or directory-traversal sourceMappingURL in CSS processed by PostCSS. This can cause PreviousMap.loadFile() to load an unintended source-map file.

3

What information can be disclosed?

The loaded source map's `sources` and `sourcesContent` fields may be exposed to the application, potentially disclosing source paths and embedded source content.

4

What is the remediation?

Upgrade PostCSS to version 8.5.19, which fixes the issue. If an upgrade cannot be applied immediately, do not process attacker-controlled CSS with `from` unset, and restrict or reject absolute and directory-traversal sourceMappingURL values.

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