CVE-2026-9358: postcss-selector-parser AST Serialization container.js toString recursion

Published May 24, 2026
·
Updated

A vulnerability was determined in postcss up to 7.1.1. Affected is the function toString of the file src/selectors/container.js of the component AST Serialization. Executing a manipulation can lead to uncontrolled recursion. It is possible to launch the attack remotely. The exploit has been publicly disclosed and may be utilized. The vendor explains, that according to his definition "DoS on server-side on user-generated CSS is low risk for us (since most users compile own CSS with PostCSS)."

Other sources

A vulnerability was determined in postcss-selector-parser before 6.1.3 and 7.1.1. Affected is the function toString of the file src/selectors/container.js of the component AST Serialization. Executing a manipulation can lead to uncontrolled recursion. It is possible to launch the attack remotely. The exploit has been publicly disclosed and may be utilized. The vendor explains, that according to his definition "DoS on server-side on user-generated CSS is low risk for us (since most users compile own CSS with PostCSS)."

— GitHub

A vulnerability was determined in postcss-selector-parser up to 6.1.2/7.1.2. Affected is the function toString of the file src/selectors/container.js of the component AST Serialization. Executing a manipulation can lead to uncontrolled recursion. It is possible to launch the attack remotely. The exploit has been publicly disclosed and may be utilized. Upgrading to version 6.1.3 and 7.1.3 is able to address this issue. This patch is called 5bc698cef66f8abd12610dc623e5d67cbc0f869d. It is suggested to upgrade the affected component. The vendor explains, that according to his definition "DoS on server-side on user-generated CSS is low risk for us (since most users compile own CSS with PostCSS)." The commits were backported to 6.x branch, which was the most downloaded version.

— MITRE

Affected Software

11 affected componentsFixes available
npm/postcss-selector-parser<=6.1.2, <=7.1.2
IBM API Connect<=V10.0.8.0 - V10.0.8.13
npm/postcss-selector-parser>=7.1.0<7.1.3
7.1.3
npm/postcss-selector-parser>=6.1.0<6.1.3
6.1.3
debian/node-css-loader<=6.7.2+~cs14.0.11-1, <=6.8.1+~cs14.0.17-1
6.8.1+~cs14.1.4-1
ubuntu/node-css-loader*
ubuntu/node-css-loader*
ubuntu/node-css-loader*
ubuntu/node-css-loader*
ubuntu/node-css-loader*
ubuntu/node-css-loader*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/postcss-selector-parser to a version that resolves this vulnerability.

    Fixed in 7.1.3
  2. Upgrade

    Upgrade npm/postcss-selector-parser to a version that resolves this vulnerability.

    Fixed in 6.1.3
  3. Upgrade

    Upgrade debian/node-css-loader to a version that resolves this vulnerability.

    Fixed in 6.8.1+~cs14.1.4-1

Event History

May 24, 2026
CVE Published
via MITRE·05:30 AM
Data Sourced
via MITRE·05:30 AM
DescriptionSeverityWeakness
Data Sourced
via OSV·06:16 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·06:16 AM
DescriptionSeverityWeakness
Event
via NVD·06:16 AM
Data Sourced
via Red Hat·07:01 AM
DescriptionSeverityAffected Software
May 26, 2026
Advisory Published
via GitHub·01:30 PM
Data Sourced
via GitHub·01:30 PM
DescriptionSeverityWeaknessAffected Software
Jun 15, 2026
Updated
via MITRE·07:21 AM
DescriptionSeverity
Updated
via NVD·08:16 AM
Description
Jun 23, 2026
Event
via FIRST·12:00 AM
Sep 22, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Nov 18, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 19, 2026
Updated
via IBM·12:00 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-9358?

The severity of CVE-2026-9358 is rated medium with a score of 4.3.

2

What are the impacts of CVE-2026-9358?

CVE-2026-9358 can lead to uncontrolled recursion which may result in a denial of service.

3

How can I fix CVE-2026-9358?

To fix CVE-2026-9358, update postcss to version 7.1.2 or later.

4

Who is affected by CVE-2026-9358?

Users of postcss versions up to 7.1.1 are affected by CVE-2026-9358.

5

Can CVE-2026-9358 be exploited remotely?

Yes, CVE-2026-9358 can be exploited remotely.

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