VDB
Sign up
MEDIUM4.3

GHSA-w9m9-85wc-3x92

postcss-selector-parser allows denial of service through uncontrolled AST recursion

Quick fix

GHSA-w9m9-85wc-3x92 — postcss-selector-parser: upgrade to the fixed version with the command below.

npm install postcss-selector-parser@6.1.3

Details

A vulnerability was determined in postcss-selector-parser before 6.1.3 and 7.1.1. 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. 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)."

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/postcss-selector-parser
Introduced in: 6.1.0Fixed in: 6.1.3
Fixnpm install postcss-selector-parser@6.1.3
npm/postcss-selector-parser
Introduced in: 7.1.0Fixed in: 7.1.3
Fixnpm install postcss-selector-parser@7.1.3

References