All vulnerabilities

Servers and applications

CVE-2026-91159

Stored oEmbed HTML injection via allowed iframe

Severity
High 7.7
Published
22 Sept 2026
Last changed
20 Oct 2026
Added to UpHeron
3 Nov 2026
Fixed in
2026.1.9, 2026.7.3, 2026.8.1, 2026.9.0
Exploit chance
0.4% in the next 30 daysHigher than 36% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
Also known as
GHSA-f9jx-vv33-4282
Sources
CVE Program, Project advisories (GitHub)

Description

A regular user with posting permissions could inject attacker-controlled HTML and CSS into post content through the oEmbed processing of a URL they post. This occurs when an oEmbed response contains an iframe from an allowlisted origin (such as YouTube) alongside unrelated sibling elements or style declarations — the entire fragment was previously treated as trusted because the first iframe matched the allowlist.

The vulnerability allowed stored injection of visual overlays or other styled content that could mislead forum users into interacting with fraudulent UI, effectively enabling phishing attacks against other site visitors.

Successful exploitation requires:

  • A standard posting account on the forum
  • Control of a public webpage and its oEmbed response
  • An iframe source from the configured allowlist (YouTube is a default)
From discourse/discourse's security advisory. Shortened; the full text is there.

Workarounds

There are no known workarounds that fully mitigate this vulnerability without upgrading. Administrators can reduce exposure by removing less-essential providers from the iframe allowlist, though this may affect legitimate embeds.

Workarounds as given by discourse/discourse's security advisory.

Affected software

SoftwareAffected versions
DiscourseServers and applications · cna:discourse|discourse
  • Every version before 2026.1.9
  • From 2026.7.0-latest before 2026.7.3
  • From 2026.8.0-latest before 2026.8.1
  • From 2026.9.0-latest before 2026.9.0
DiscourseServers and applications · github:discourse/discourse
  • Every version before 2026.9.0
  • From 2026.1.0-latest before 2026.1.9
  • From 2026.7.0-latest before 2026.7.3
  • From 2026.8.0-latest before 2026.8.1

About Discourse

open source Internet forum software application

From Wikidata, CC0 1.0.
Docker Hub pulls
175,357Docker Hub, 15 Nov 2026
GitHub stars
48,085GitHub, 15 Nov 2026
Forks
9,063GitHub, 15 Nov 2026
License
GNU General Public License, version 2.0Wikidata
Written in
Ruby, JavaScriptWikidata
First released
2013Wikidata
First published on GitHub
12 Jan 2013GitHub

References