{
  "id": "security/javascript/fb55__css-what/2026-10-05-deeply-nested-selectors-overflow-parser",
  "title": "Deeply nested selectors overflow the parser call stack",
  "category": "security",
  "type": "dos",
  "severity": "medium",
  "cvss": {
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
    "score": 5.3
  },
  "ecosystem": "javascript",
  "project": {
    "owner": "fb55",
    "repo": "css-what",
    "url": "https://github.com/fb55/css-what"
  },
  "affected_versions": [
    "css-what >= 2.0.0, < 6.2.0",
    "css-what > 6.2.0, <= 8.0.0"
  ],
  "fixed_version": "8.1.0",
  "status": "published",
  "disclosure": {
    "channel": "pvr",
    "ghsa_id": "GHSA-2xp8-p559-r942",
    "cve_id": "CVE-2026-141400",
    "url": "https://github.com/fb55/css-what/security/advisories/GHSA-2xp8-p559-r942",
    "reported_at": "2026-10-05T14:29:36+03:00",
    "published_at": "2026-12-03T14:31:01+03:00"
  },
  "summary": "Applications that pass untrusted selectors to css-what's parse() are affected (CWE-674). parse() handled each nested selector-valued pseudo-class, such as :is(), :not(), :has() or :where(), with a recursive call, so a selector nested a few thousand levels deep exhausts the JavaScript call stack and makes parse() throw a RangeError. npm package css-what versions >= 2.0.0 and <= 8.0.0 are affected, except the empty 6.2.0 package. 1.0.0 keeps nested selector arguments as strings and is not affected. Fixed in 8.1.0. This is CVE-2026-141400. GitHub rates it medium, with CVSS 3.1 score 5.3. The advisory credits ucsurf, Linus-Shyu, iaohkut-from-NightWolf-Team and uug4na as reporters. Fixed by Felix Boehm (@fb55).",
  "discovered_at": "2026-10-04T00:00:00+03:00",
  "public": true,
  "credit": "ucsurf",
  "updated_at": "2026-12-03T14:31:01+03:00",
  "pr": null,
  "references": [
    "https://github.com/fb55/css-what/pull/1884",
    "https://github.com/fb55/css-what/issues/1712",
    "https://github.com/fb55/css-what/releases/tag/v8.1.0",
    "https://www.npmjs.com/package/css-what/v/8.1.0"
  ]
}
