Cross-site scripting in Discourse - CVE-2026-91122
Published: October 28, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary JavaScript in a viewer’s session, read page content, and make authenticated requests on the viewer’s behalf.
The vulnerability exists due to improper neutralization of HTML attributes in the Discourse video placeholder component when rendering crafted post content. A remote user can post crafted HTML that breaks out of an attribute and injects an event handler to execute arbitrary JavaScript when a viewer opens the post and clicks the video placeholder’s play overlay.
Exploitation requires an instance with Content Security Policy (CSP) disabled or relaxed to permit inline event handlers.