Cross-site scripting in Discourse - CVE-2026-91159
Published: October 28, 2026
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.