CVE-2026-144684
DESCRIPTION
postcss-selector-parser before 6.1.6 and 7.x before 7.1.8 contains a denial of service vulnerability that allows remote attackers to exhaust CPU through quadratic-time selector parsing in src/parser.js. Attackers can supply tens of kilobytes of crafted selectors exploiting splitWord(), space(), parenthesis handling, or cssesc backslash escaping to block the Node.js event loop for seconds.
CVSS
HIGH 8.2 · v4.0
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XWEAKNESSES
REFERENCES
- https://github.com/postcss/postcss-selector-parser/blob/7.1.7/src/parser.js#L1005
- https://github.com/postcss/postcss-selector-parser/blob/7.1.7/src/parser.js#L936
- https://github.com/postcss/postcss-selector-parser/commit/6e311aa71c1eff5423b79ad662b376755cfa4e65
- https://github.com/postcss/postcss-selector-parser/commit/71504d19170efeb57f3693c8dbdb86d8584d6278
- https://github.com/postcss/postcss-selector-parser/releases/tag/6.1.6
- https://github.com/postcss/postcss-selector-parser/releases/tag/7.1.8
- https://github.com/postcss/postcss-selector-parser/security/advisories/GHSA-67xj-gfww-g738
- https://www.vulncheck.com/advisories/postcss-selector-parser-before-6.1.6-and-7.1.8-quadratic-time-parsing-denial-of-service
This record is mirrored from the NIST National Vulnerability Database and republished unchanged. It may have been revised or withdrawn since we last synced it; check the record at NVD before relying on it.