CVE-2026-91159: Discourse: Stored oEmbed HTML injection via allowed iframe

Published Oct 14, 2026
·
Updated

Discourse is an open-source discussion platform. Prior to 2026.9.0, 2026.8.1, 2026.7.3, and 2026.1.9, oEmbed processing treated an entire attacker-controlled HTML fragment as trusted when the fragment contained an iframe whose source matched the configured allowlist. A user with posting permission who controlled a public webpage and its oEmbed response could combine an allowlisted iframe with unrelated sibling HTML or CSS, causing stored visual overlays or other styled content to appear in post content and enabling misleading or fraudulent user interfaces. Exploitation requires a posting account, control of the fetched webpage and oEmbed response, and an allowlisted iframe source. The issue affects content integrity but does not expose restricted data, disrupt availability, or require interaction with Discourse Content Security Policy. This issue is fixed in versions 2026.9.0, 2026.8.1, 2026.7.3, and 2026.1.9.

Affected Software

1 affected component
Discourse Discourse<2026.9.0, <2026.8.1, <2026.7.3, <2026.1.9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Discourse to a version that resolves this vulnerability.

    Fixed in 2026.9.0
  2. Upgrade

    Upgrade Discourse to a version that resolves this vulnerability.

    Fixed in 2026.8.1
  3. Upgrade

    Upgrade Discourse to a version that resolves this vulnerability.

    Fixed in 2026.7.3
  4. Upgrade

    Upgrade Discourse to a version that resolves this vulnerability.

    Fixed in 2026.1.9

Event History

Oct 14, 2026
CVE Published
via MITRE·03:30 PM
Data Sourced
via MITRE·03:30 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An attacker needs a Discourse account with permission to post, control of a public webpage and its oEmbed response, and an iframe source that matches the instance's configured allowlist.

2

Are default installations affected?

Exploitation depends on the configured iframe allowlist. The attacker must be able to include an iframe whose source is allowed by that configuration.

3

What is the impact if exploited?

An attacker can store unrelated HTML or CSS alongside an allowlisted iframe, creating visual overlays or other misleading content in posts. The issue affects content integrity; it does not expose restricted data or disrupt availability.

4

Does Discourse Content Security Policy prevent exploitation?

No. Exploitation does not require interaction with Discourse Content Security Policy.

5

Which versions contain the fix?

Update to 2026.9.0, 2026.8.1, 2026.7.3, or 2026.1.9, as applicable to the release line in use.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203