CVE-2026-9358: postcss-selector-parser AST Serialization container.js toString recursion
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
postcss-selector-parserto a version that resolves this vulnerability.Fixed in 6.1.3 - Upgrade
Upgrade
postcss-selector-parserto a version that resolves this vulnerability.Fixed in 7.1.3Patch 5bc698cef66f8abd12610dc623e5d67cbc0f869d
Event History
Frequently Asked Questions
What is the severity of CVE-2026-9358?
The severity of CVE-2026-9358 is rated medium with a score of 4.3.
What are the impacts of CVE-2026-9358?
CVE-2026-9358 can lead to uncontrolled recursion which may result in a denial of service.
How can I fix CVE-2026-9358?
To fix CVE-2026-9358, update postcss to version 7.1.2 or later.
Who is affected by CVE-2026-9358?
Users of postcss versions up to 7.1.1 are affected by CVE-2026-9358.
Can CVE-2026-9358 be exploited remotely?
Yes, CVE-2026-9358 can be exploited remotely.