postcss-selector-parser before 6.1.6 and 7.1.8 Quadratic-Time Parsing Denial of Service (postcss postcss-selector-parser)
En bref
- Source
- CVE.org
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- VulnCheck
- Produits affectés
- postcss · postcss-selector-parser
Rechercher sur…
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.
Faiblesses (CWE)
- CWE-407 — Complexité algorithmique inefficace
Crédits
- Zachariah Mithani (AploSec) découverte
Références
- https://github.com/postcss/postcss-selector-parser/security/advisories/GHSA-67xj-gfww-g738
- 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/7.1.8
- https://github.com/postcss/postcss-selector-parser/releases/tag/6.1.6
- 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://www.vulncheck.com/advisories/postcss-selector-parser-before-6.1.6-and-7.1.8-quadratic-time-parsing-denial-of-service
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 4.0 | HIGH 8.2 | 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 | VulnCheck |
| CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H | VulnCheck |
Références européennes
- ENISA EUVD · EUVD-2026-143979
- GCVE · GCVE-0-2026-144684
Produits affectés
| Produit | Versions affectées |
|---|---|
| postcss · postcss-selector-parser | affectée : ≥ 4.0.0-rc.0 < 6.1.6 affectée : ≥ 7.0.0 < 7.1.8 Autres versions : non affectée |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |