Cross-site scripting in Discourse - #VU140660
Published: August 1, 2026
Vulnerability details
The vulnerability allows a remote user to inject arbitrary HTML.
The vulnerability exists due to improper neutralization of special elements in PrettyText.format_for_email when reparsing cooked attribute values as markup. A remote user can supply crafted attribute content to inject arbitrary HTML.
The issue involves cooked attribute text being decoded and then reinterpreted as HTML during email formatting.