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

 

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

Published: October 28, 2026


Vulnerability identifier: #VU158256
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-91159
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to inject persistent HTML and CSS into forum posts, presenting misleading content and fraudulent interfaces that enable phishing against site visitors.

The vulnerability exists due to improper HTML sanitization in Discourse's oEmbed processing when an entire response fragment is trusted because its first iframe matches the configured origin allowlist. A remote user can post a URL to a controlled public webpage whose oEmbed response combines an allowlisted iframe with unrelated sibling elements or style declarations to inject deceptive content into forum posts.


Affected software

Discourse

How to mitigate CVE-2026-91159

Install security update from vendor's website.

Discourse - addressed in versions 2026.1.9, 2026.7.3, 2026.8.1, 2026.9.0

External References

Related Security Bulletins