Cross-site scripting in Discourse - #VU166160
Published: November 13, 2026
Vulnerability details
The vulnerability allows a remote user to alter notification email appearance or disguise links through injected HTML attributes.
The vulnerability exists due to improper neutralization of post content in Discourse notification email rendering when constructing links from iframe URLs and embedding secure images using supplied dimensions. A remote user can craft posts containing iframe URLs whose origins are permitted by allowed_iframes, or secure images when secure_uploads_allow_embed_images_in_emails is enabled, to inject HTML attributes into emails received by other users.