postcss-selector-parser allows denial of service through uncontrolled AST recursion
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)."
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | postcss-selector-parser | >= 6.1.0, < 6.1.3, >= 7.1.0, < 7.1.3 | 6.1.3, 7.1.3 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-9358
- https://github.com/postcss/postcss-selector-parser/commit/5bc698cef66f8abd12610dc623e5d67cbc0f869d
- https://github.com/postcss/postcss-selector-parser/commit/e37c5b0b785b165e27508d2489fdec8e0f18b10a
- https://gist.github.com/bx33661/581e3a38134601c04e19b4dfc9b459b9
- https://github.com/postcss/postcss-selector-parser
- https://github.com/postcss/postcss-selector-parser/releases/tag/6.1.3
- https://github.com/postcss/postcss-selector-parser/releases/tag/7.1.3
- https://vuldb.com/cve/CVE-2026-9358
- https://vuldb.com/submit/813080
- https://vuldb.com/vuln/365321
- https://vuldb.com/vuln/365321/cti
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L- Weakness (CWE)
CWE-404- Platform
- npm
- Package
postcss-selector-parser- Disclosed
- 26.05.2026
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-w9m9-85wc-3x92 - CC BY 4.0
Vulnerability history: postcss-selector-parser
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 2
- First → latest
- 05.2026 10.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Medium 1
- Low 1
Disclosures per year
- 2026: 2
-
postcss-selector-parser allows denial of service through uncontrolled AST recursion this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.