{"id":"CVE-2026-9358","published":"2026-05-24T05:30:09Z","modified":"2026-06-15T07:21:46Z","title":"postcss-selector-parser AST Serialization container.js toString recursion","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00325,"percentile":0.26249,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"},{"id":"CWE-404","name":"Improper Resource Shutdown or Release"}],"references":[{"url":"https://vuldb.com/vuln/365321","tags":["vdb-entry","technical-description"]},{"url":"https://vuldb.com/vuln/365321/cti","tags":["signature","permissions-required"]},{"url":"https://vuldb.com/cve/CVE-2026-9358","tags":["third-party-advisory"]},{"url":"https://vuldb.com/submit/813080","tags":["third-party-advisory"]},{"url":"https://gist.github.com/bx33661/581e3a38134601c04e19b4dfc9b459b9","tags":["exploit"]},{"url":"https://github.com/postcss/postcss-selector-parser/commit/5bc698cef66f8abd12610dc623e5d67cbc0f869d","tags":["patch"]},{"url":"https://github.com/postcss/postcss-selector-parser/releases/tag/7.1.3","tags":["patch"]}],"priority":{"score":13.3,"factors":[{"name":"EPSS percentile","points":5.25},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.01}]},"affectedVersions":[{"vendor":"n/a","product":"postcss-selector-parser","versions":["6.1.0","6.1.1","6.1.2","7.1.0","7.1.1","7.1.2"]}],"fixedVersions":[{"vendor":"n/a","product":"postcss-selector-parser","versions":["6.1.3","7.1.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-29T18:22:06.872944Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"postcss-selector-parser","vulnerableRanges":[">=6.1.0, <6.1.3",">=7.1.0, <7.1.3"],"patched":["6.1.3","7.1.3"],"from":["GHSA-w9m9-85wc-3x92"],"provenance":"source"}],"summary":{"text":"The flaw is an uncontrolled recursion in the toString function of src/selectors/container.js, part of the AST Serialization component of postcss-selector-parser (versions up to 6.1.2 and 7.1.2). An attacker who can supply crafted input to be serialized can trigger the recursion remotely, without authentication, though it requires user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:34Z"},"euvd":{"id":"EUVD-2026-31571","exploited":false,"provenance":"source"},"exploitRefs":["https://gist.github.com/bx33661/581e3a38134601c04e19b4dfc9b459b9"],"lineage":{"familyId":"fam-postcss-selector-parser-cve-2026-9358","children":[{"from":"CVE-2026-9358","to":"CVE-2026-104844","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:postcss-selector-parser","fromFixed":"6.1.3","toFixed":"6.1.5","daysApart":131},{"kind":"version-step","provenance":"source","package":"npm:postcss-selector-parser","fromFixed":"7.1.3","toFixed":"7.1.6","daysApart":131},{"kind":"same-code","provenance":"machine","files":["src/parser.js"],"commits":["https://github.com/postcss/postcss-selector-parser/commit/62b191792df0a0bc56062e5a875bc74aae2a51cd","https://github.com/postcss/postcss-selector-parser/commit/70b0779c843462197380d25daa02d1528bf7eae5","https://github.com/postcss/postcss-selector-parser/commit/5bc698cef66f8abd12610dc623e5d67cbc0f869d","https://github.com/postcss/postcss-selector-parser/commit/e37c5b0b785b165e27508d2489fdec8e0f18b10a"],"basis":"shared function","functions":["Parser"]}]}],"packageHistory":[{"cve":"CVE-2026-9358","published":"2026-05-24","fixed":"7.1.3","kev":false},{"cve":"CVE-2026-104844","published":"2026-10-02","fixed":"7.1.6","kev":false}],"package":"npm:postcss-selector-parser"}}