HTML injection in Discourse chat quotes via censored watched words
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · GHSA-9wqc-38mw-8j56. Fix status from GitHub. Impact type from CWE-79.
Summary
Discourse sites with the Chat plugin enabled and a censored watched word containing a wildcard are affected. The censor rewrites HTML already sanitized in chat quotes, an improper neutralization of input during web page generation (CWE-79). A low-privileged user can craft a chat transcript to inject HTML attributes and elements the sanitizer removed, enabling content spoofing or page overlays. The default Content Security Policy blocks script from the injected markup.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
Description from the GitHub advisory
### Impact On sites that use censored watched words containing a wildcard (`*`), a user could craft a chat transcript (a quote of chat messages) so that censoring rewrote HTML that had already passed the sanitizer. This let the user inject HTML attributes and elements that the sanitizer would have removed, which could be used for content spoofing or to overlay parts of the page. The default Content Security Policy blocks script execution from the injected markup. Only sites with the Chat plugin enabled and at least one censored watched word that uses a wildcard are affected. ### Patches The censor no longer rewrites HTML that is restored after sanitization. Fixed in `2026.11.0-latest`. Fixed release versions will be added after the fix and backports are released. ### Workarounds Remove the wildcard (`*`) from censored watched words, or delete those watched words, until a patched version is available. ### References None. Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-1KUBK80U.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | Discourse | — | 2026.11.0-latest.1 | Patch available | GHSA-9wqc-38mw-8j56 |
| — | Discourse | >= 2026.10.0-latest | 2026.10.1 | Patch available | GHSA-9wqc-38mw-8j56 |
| — | Discourse | >= 2026.9.0-latest | 2026.9.2 | Patch available | GHSA-9wqc-38mw-8j56 |
| — | Discourse | >= 2026.7.0-latest | 2026.7.5 | Patch available | GHSA-9wqc-38mw-8j56 |
- Discourse Vendor— Affected — Fixed in 2026.11.0-latest.1 Patch available GHSA-9wqc-38mw-8j56
- Discourse Vendor— Affected >= 2026.10.0-latest Fixed in 2026.10.1 Patch available GHSA-9wqc-38mw-8j56
- Discourse Vendor— Affected >= 2026.9.0-latest Fixed in 2026.9.2 Patch available GHSA-9wqc-38mw-8j56
- Discourse Vendor— Affected >= 2026.7.0-latest Fixed in 2026.7.5 Patch available GHSA-9wqc-38mw-8j56
Remediation
Upgrade Discourse to 2026.7.5, 2026.9.2, 2026.10.1 or 2026.11.0-latest.1, matching the release line in use. Until a patched version is installed, remove the wildcard from censored watched words or delete those watched words.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
- Fix · GHSA-9wqc-38mw-8j56 Discourse Fixed in 2026.11.0-latest.1 Advisory →
- Fix · GHSA-9wqc-38mw-8j56 Discourse Fixed in 2026.10.1 Advisory →
- Fix · GHSA-9wqc-38mw-8j56 Discourse Fixed in 2026.9.2 Advisory →
- Fix · GHSA-9wqc-38mw-8j56 Discourse Fixed in 2026.7.5 Advisory →
Timeline
- 2026-11-12 Threatist record created from GHSA-9wqc-38mw-8j56
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences