1. Accueil
  2. Vulnérabilités
  3. CVE-2026-104844

CVE-2026-104844

PostCSS: Quadratic complexity in flat selector parsing allows CPU exhaustion

Publiée le 2 oct. 2026 · modifiée le 2 oct. 2026 · Sources : NVD, CNA (éditeur ou attributeur), CERT-FR, EPSS (FIRST)

Faible 36/100

Résumé

PostCSS Selector Parser is a CSS selector parser that integrates with PostCSS but does not require it. Prior to 7.1.6, src/parser.js splitWord() can receive a flat selector as one word token carrying many class or ID indexes because period and hash characters are not tokenizer word delimiters. The uniqs() deduplication and per-index class and ID membership checks repeatedly scan the class and ID index arrays, while a separate Sass-interpolation filtering pass also performs repeated linear scanning. Together, these passes make parsing quadratic in the number of indexes and allow a crafted selector to occupy a synchronous parser thread. The maxNestingDepth guard does not mitigate the issue because the hostile selector can have zero nesting depth. Only consumers that synchronously parse untrusted selectors in an exposed request path are affected; ordinary build-time parsing of trusted sources is not affected. This issue is fixed in version 7.1.6.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Postcss (1 ligne(s))
Postcss
ProduitVersionsCorrigé dansSource
postcss-selector-parser Versions non précisées — CNA (éditeur ou attributeur)
npm (2 ligne(s))
npm
ProduitVersionsCorrigé dansSource
postcss-selector-parser de 7.0.0 (inclus) à 7.1.6 (exclu) 7.1.6 GitHub Advisory
postcss-selector-parser avant 6.1.5 (exclu) 6.1.5 GitHub Advisory

Correctif

Mise à jour — npm/postcss-selector-parser 7.1.6; npm/postcss-selector-parser 6.1.5source officielle

Source : GitHub Advisory

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)
  2. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1385)
  3. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1539)

Avis CERT-FR

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
CNA (éditeur ou attributeur)
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, CNA:GitHub_M)
Faiblesse
CWE-400 · Autre (CWE-400)

Comment sont obtenues et calculées ces données