Description
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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | postcss-selector-parser | 6.1.0, 6.1.1, 6.1.2, 7.1.0, 7.1.1, 7.1.2 | 6.1.3 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-css-loader | 6.8.1+~cs14.1.4-1 | — |
| Debian 13 | node-css-loader | No fix yet | — |
| Debian 12 | node-css-loader | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-css-loader | No fix yet | — |
| Ubuntu 26.04 LTS | node-css-loader | No fix yet | — |
| Ubuntu 25.10 | node-css-loader | No fix yet | — |
| Ubuntu 24.04 LTS | node-css-loader | No fix yet | — |
| Ubuntu 22.04 LTS | node-css-loader | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | node-css-loader | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | rust +18 | 1.96.0-1.hum1 | RHSA-2026:22934 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | jupyter-base-notebook | 7.6.3-r2 | — |
| Wolfi rolling | vitess-23 | 23.0.6-r3 | — |
| Wolfi rolling | vitess-24 | 24.0.3-r5 | — |
| Wolfi rolling | vitess-24-compat | 24.0.3-r7 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | postcss-selector-parser | >= 6.1.0, < 6.1.3 | 6.1.3 | GHSA-w9m9-85wc-3x92 |
| npm | postcss-selector-parser | >= 7.1.0, < 7.1.3 | 7.1.3 | GHSA-w9m9-85wc-3x92 |
Advisories 1
- RHSA-2026:22934 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 20, 2026
References
- VDB-365321 | postcss-selector-parser AST Serialization container.js toString recursion vdb-entry technical-description
- VDB-365321 | CTI Indicators (IOB, IOC, TTP, IOA) signature permissions-required
- CVE-2026-9358 | CVE Analysis and Report third-party-advisory
- Submit #813080 | postcss-selector-parser postcss <= 7.1.1 CWE-674: Uncontrolled Recursion third-party-advisory
- https://gist.github.com/bx33661/581e3a38134601c04e19b4dfc9b459b9 exploit
- https://github.com/postcss/postcss-selector-parser/commit/5bc698cef66f8abd12610dc623e5d67cbc0f869d patch
- https://github.com/postcss/postcss-selector-parser/releases/tag/7.1.3 patch