Cross-site scripting in Discourse - CVE-2026-27154
Published: July 1, 2026
Discourse
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary script in a victim's browser.
The vulnerability exists due to cross-site scripting in the post editing feature when rendering a malicious user's full name as raw HTML. A remote user can set a crafted full name and trick another user into editing a post to execute arbitrary script in a victim's browser.
Only instances with display_name_on_posts enabled and prioritize_username_in_ux disabled are vulnerable.