Cross-site scripting in Discourse - #VU166156
Published: November 13, 2026
Vulnerability details
The vulnerability allows a remote user to inject persistent HTML into posts and display fake content to viewers.
The vulnerability exists due to improper output escaping in Discourse onebox renderers when embedding external page metadata or site-specific titles and text, although scripts are still removed. A remote user can post a link to controlled content containing crafted metadata, titles, or text to inject styled HTML into the stored onebox and obscure the page with fake content.