Cross-site scripting in Discourse - CVE-2026-91122

 

Cross-site scripting in Discourse - CVE-2026-91122

Published: October 28, 2026


Vulnerability identifier: #VU158254
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2026-91122
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

Discourse

How to mitigate CVE-2026-91122

Install security update from vendor's website.

Discourse - addressed in versions 2026.1.8, 2026.6.3, 2026.7.2, 2026.8.0

External References

Related Security Bulletins