Cross-site scripting in Discourse - #VU166155
Published: November 13, 2026
Vulnerability details
The vulnerability allows a remote user to inject misleading links, images, or styling into personal message notification emails.
The vulnerability exists due to improper neutralization of HTML and Markdown in Discourse email generation when rendering participant names or topic titles. A remote user can supply crafted group full names for groups invited to personal messages, user full names when prioritize_username_in_ux is disabled, or topic titles when customized email headers, footers, or preview texts include %{topic_title} to alter emails received by other participants.