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

- Severity: Medium 5.3 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-24T05:30:09.671Z
- Modified: 2026-09-10T03:50:47.767Z
- Also known as: GHSA-w9m9-85wc-3x92
- Weaknesses: CWE-404, CWE-674
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- postcss-selector-parser: 6.1.0; 6.1.1; 6.1.2; 7.1.0; 7.1.1; 7.1.2 (not affected: 6.1.3; 7.1.3)
- postcss-selector-parser (npm): from 6.1.0 before 6.1.3; from 7.1.0 before 7.1.3

## Every score

- VulDB: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`
- VulDB: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:3.0 4.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C`
- GitHub: CVSS:3.1 4.3 Low `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`

## References

- <https://gist.github.com/bx33661/581e3a38134601c04e19b4dfc9b459b9> (exploit, web)
- <https://vuldb.com/vuln/365321> (technical-description, vdb-entry, web)
- <https://vuldb.com/vuln/365321/cti> (permissions-required, signature, web)
- <https://vuldb.com/cve/CVE-2026-9358> (third-party-advisory, web)
- <https://vuldb.com/submit/813080> (third-party-advisory, web)
- <https://github.com/postcss/postcss-selector-parser/commit/5bc698cef66f8abd12610dc623e5d67cbc0f869d> (patch, web)
- <https://github.com/postcss/postcss-selector-parser/releases/tag/7.1.3> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-9358> (advisory)
- <https://github.com/postcss/postcss-selector-parser/commit/e37c5b0b785b165e27508d2489fdec8e0f18b10a> (web)
- <https://github.com/postcss/postcss-selector-parser> (package)
- <https://github.com/postcss/postcss-selector-parser/releases/tag/6.1.3> (web)

## Sources

- CVE List: [CVE-2026-9358](https://www.cve.org/CVERecord?id=CVE-2026-9358), CVE Terms of Use, modified 2026-06-15
- GitHub Advisory Database: [GHSA-w9m9-85wc-3x92](https://github.com/advisories/GHSA-w9m9-85wc-3x92), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-9358](https://nvd.nist.gov/vuln/detail/CVE-2026-9358), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-9358 · Whole record: https://cve.day/CVE-2026-9358.json · Rebuilt by cve.day 2026-11-25T22:59:22.231Z
