Skip to main content
← All vulnerabilities
CVE-2026-9358GHSA-W9M9-85WC-3X92

postcss-selector-parser AST Serialization container.js toString recursion

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.1.3, 7.1.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a postcss-selector-parser

    6.1.0, 6.1.1, 6.1.2, 7.1.0, 7.1.1, 7.1.2

  • postcss-selector-parsernpm

    From 6.1.0 · fixed in 6.1.3

  • postcss-selector-parsernpm

    From 7.1.0 · fixed in 7.1.3

References 7

VulDB

gist.github.com

GitHub · postcss/postcss-selector-parser