{
  "id": "security/javascript/fb55__css-what/2026-10-05-selectors-css-rule-boundaries",
  "title": "Selectors can carry CSS rule boundaries through parsing and output",
  "category": "security",
  "type": "injection",
  "severity": "medium",
  "cvss": {
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N",
    "score": 5.3
  },
  "ecosystem": "javascript",
  "project": {
    "owner": "fb55",
    "repo": "css-what",
    "url": "https://github.com/fb55/css-what"
  },
  "affected_versions": [
    "css-what >= 3.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-4x64-245j-54h4",
    "cve_id": "CVE-2026-141401",
    "url": "https://github.com/fb55/css-what/security/advisories/GHSA-4x64-245j-54h4",
    "reported_at": "2026-10-05T14:29:36+03:00",
    "published_at": "2026-12-02T04:40:44+03:00"
  },
  "summary": "Applications that parse untrusted selectors with css-what and then put them into a stylesheet are affected (CWE-116). The parser accepts raw rule delimiters in names, and stringify() removes necessary escapes from names containing those characters, so the resulting CSS can change rules outside the intended selector scope. npm package css-what versions >= 3.0.0 and <= 8.0.0 are affected, except the empty 6.2.0 package. The escaped-input form affects that whole range; the raw-name form affects 3.3.0 through 8.0.0. Fixed in 8.1.0. This is CVE-2026-141401. GitHub rates it medium, with CVSS 3.1 score 5.3. The advisory credits ucsurf as reporter. Fixed by Felix Boehm (@fb55).",
  "discovered_at": "2026-10-04T00:00:00+03:00",
  "public": true,
  "credit": "ucsurf",
  "updated_at": "2026-12-02T04:40:44+03:00",
  "pr": null,
  "references": [
    "https://github.com/fb55/css-what/pull/1927",
    "https://github.com/fb55/css-what/pull/1802",
    "https://github.com/fb55/css-what/releases/tag/v8.1.0",
    "https://www.npmjs.com/package/css-what/v/8.1.0"
  ]
}
