CVE-2026-9358CWE-404CWE-674

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

Medium · published May 24, 2026

CVSS v4.0
5.3
EPSS
1%
Percentile
47.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
5.3 · MEDIUM
Vector
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
EPSS
0.00580 · 47.0th percentile
Weaknesses
CWE-404 · Improper Resource Shutdown or Release; CWE-674 · Uncontrolled Recursion
Published
2026-05-24T05:30Z
EPSS history
Timeline
  • 24 MAY 05:30Z
    postcss-selector-parser AST Serialization container.js toString recursion
    cvelistv5