{
  "id": "discourse-pr-45728",
  "title": "Discourse post cooking can restore raw HTML inside a tag after sanitization",
  "product": "Discourse post-cooking and HTML sanitizer",
  "ai_system": "Anthropic OSS Scanner (item-specific model/version not identified)",
  "organization": "Anthropic and Discourse maintainers",
  "summary": "While cooking a post, Discourse sanitized raw HTML while it was represented by a placeholder, then restored the raw HTML at the placeholder. A crafted placeholder inside a tag could therefore cause attributes to be inserted after the allow-lister had run. The project classified the fix as a security change; the reviewed primary source establishes HTML injection past the sanitizer, without stating a specific exploit outcome.",
  "ai_role": "The merged primary Discourse security pull request explicitly says “Discovered by Anthropic’s OSS Scanner” and identifies finding ANT-2026-ENYESJVJ. Anthropic’s OSS Scanner documentation states that findings are generated directly from its strongest models for this fast-track program; the item does not identify a specific model/version.",
  "disclosure_date": "2026-11-05",
  "ai_attribution_date": "2026-11-05",
  "classification": "disclosure",
  "classification_note": "The project’s merged SECURITY pull request identifies a sanitizer-bypass HTML injection, directly credits Anthropic OSS Scanner, and records the fix. No CVE or GHSA appears in the reviewed primary sources, so the public PR #45728 is the case identifier. No JavaScript execution, exploitation, or zero-day claim is made.",
  "cves": [],
  "source_url": "https://github.com/discourse/discourse/pull/45728",
  "ai_source_url": "https://github.com/discourse/discourse/pull/45728",
  "remediation": "fix documented",
  "remediation_note": "Discourse now drops any placeholder that occurs inside a tag, rechecking each substitution so hoisted raw HTML is restored only where text may appear. The change was merged in PR #45728 and backported to release 2026.10 (#45736), with related backports #45739 and #45740. Deployed patch status is not checked.",
  "advisory_url": "https://releases.discourse.org/changelog/v2026.10.1/",
  "checked_date": "2026-11-14",
  "impacts": [
    {
      "cves": [],
      "consequences": [
        "other"
      ],
      "conditions": "The Discourse patch report says raw HTML restoration could introduce attributes the allow-lister missed; no resulting browser action is stated.",
      "exploitation": "The cited source does not state whether this issue was exploited in the wild.",
      "source_url": "https://github.com/discourse/discourse/pull/45728",
      "checked_date": "2026-11-16"
    }
  ]
}
