Cross-site scripting in Discourse - #VU166157
Published: November 13, 2026
Vulnerability details
The vulnerability allows a remote user to spoof content or overlay parts of the page with injected HTML.
The vulnerability exists due to improper neutralization of HTML in Discourse's Chat plugin when wildcard-based watched-word censoring rewrites quoted chat messages after sanitization. A remote user can craft a chat transcript on sites with the Chat plugin enabled and wildcard-containing censored watched words to inject HTML attributes and elements that bypass sanitization.