{
  "schemaVersion": 1,
  "incident": {
    "id": "ghsa-cg2g-xh64-v4q7",
    "url": "https://cveboard.org/i/ghsa-cg2g-xh64-v4q7",
    "urlPt": "https://cveboard.org/pt/i/ghsa-cg2g-xh64-v4q7",
    "json": "https://cveboard.org/i/ghsa-cg2g-xh64-v4q7.json",
    "kind": "vuln",
    "live": true,
    "knownExploited": false,
    "severity": "critical",
    "title": "DOMPurify SAFE_FOR_TEMPLATES bypass: split template expressions survive in attached shadow root content on DOM output modes",
    "summary": "When DOMPurify is configured with SAFE_FOR_TEMPLATES: true together with a DOM-returning mode (RETURN_DOM: true, RETURN_DOM_FRAGMENT: true, or IN_PLACE: true), template expressions such as {{...}}, ${...}, and <%...%> survive sanitization inside the text content of an attached shadow root. The post-walk safety net _scrubTemplateExpressions (src/purify.",
    "titlePt": "Contornar SAFE_FOR_TEMPLATES do DOMPurify: expressões de template divididas sobrevivem no conteúdo da shadow root anexada nos modos de saída DOM",
    "summaryPt": "Quando o DOMPurify é configurado com SAFE_FOR_TEMPLATES: true junto com um modo de retorno DOM (RETURN_DOM: true, RETURN_DOM_FRAGMENT: true, ou IN_PLACE: true), expressões de template como {{...}}, ${...} e <%...%> sobrevivem à sanitização dentro do conteúdo de texto de uma shadow root anexada. A rede de segurança pós-caminhada _scrubTemplateExpressions (src/purify.",
    "cves": [],
    "ghsa": "GHSA-cg2g-xh64-v4q7",
    "cvss": {
      "score": 9.2,
      "version": "4.0"
    },
    "epss": null,
    "packages": [
      {
        "ecosystem": "npm",
        "name": "dompurify",
        "vulnerable": ">= 3.4.4, <= 3.4.16",
        "fixed": "3.4.17",
        "advisory": "GHSA-cg2g-xh64-v4q7"
      }
    ],
    "vendor": null,
    "product": null,
    "kev": null,
    "breach": null,
    "retracted": false,
    "sources": [
      {
        "label": "GitHub Advisory Database",
        "url": "https://github.com/advisories/GHSA-cg2g-xh64-v4q7"
      }
    ],
    "publishedAt": "2026-10-22T16:25:31.000Z",
    "updatedAt": "2026-10-22T16:25:31.000Z"
  },
  "live": true,
  "events": [
    {
      "id": "ghsa:GHSA-cg2g-xh64-v4q7:ghsa_published:2026-10-22T16:25:31.000Z",
      "incidentId": "ghsa-cg2g-xh64-v4q7",
      "type": "ghsa_published",
      "at": "2026-10-22T16:25:31.000Z",
      "detail": {
        "ghsa": "GHSA-cg2g-xh64-v4q7",
        "severity": "critical",
        "fixed": "3.4.17"
      }
    }
  ]
}