Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Network-reachable via authenticated users (PR:L, AV:N); content injection yields limited confidentiality and integrity impact; no availability impact is substantiated by the iframe injection mechanism described.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
3DescriptionCVE.org
Discourse is an open-source discussion platform. Prior to 2026.1.7, an authenticated user could submit specially formed URLs that bypassed the Onebox allowlist and embedded malicious content in a site. This issue is fixed in versions 2026.1.7, 2026.6.2, 2026.7.1, and 2026.8.0-latest.1.
AnalysisAI
Onebox allowlist bypass in Discourse (all versions prior to 2026.1.7) enables authenticated forum users to embed malicious iframes and attacker-controlled content in posts by exploiting a regex prefix-matching flaw in the origins_to_regexes method. The core defect - missing URL boundary anchors and an overly permissive wildcard expansion - allows domains like youtube.com.attacker.example to pass validation as the allowlisted youtube.com. No public exploit has been identified at time of analysis and the vulnerability is absent from the CISA KEV catalog; vendor-released patches exist as versions 2026.1.7, 2026.6.2, 2026.7.1, and 2026.8.0-latest.1.
Technical ContextAI
Discourse's Onebox feature resolves URLs in posts to rich previews and oEmbed iframes using a configurable origin allowlist. The vulnerability resides in lib/onebox/engine.rb within the origins_to_regexes method, which converts allowlisted origin strings into Ruby regular expressions. Two compounding flaws existed: (1) the wildcard character * was expanded to \S*, which matches any non-whitespace character including ? and # - permitting attackers to use query or fragment components to inject a matching domain suffix (e.g., attacker.example?.kaltura.com/); and (2) the resulting regex used only a prefix anchor (\A) with no URL boundary requirement, so an allowlisted origin https://youtube.com positively matched https://youtube.com.attacker.example. The fix changes the wildcard expansion to [^/?#]* (restricting to a single URL authority segment) and appends a boundary group (?::\d+(?:[/?#]|\z)|[/?#]|\z) to host-only origins. CWE-20 (Improper Input Validation) is the root cause class - oEmbed iframe source URLs were matched against the allowlist without enforcing URL structural boundaries, allowing a class of URL authority confusion attacks.
RemediationAI
Upgrade Discourse to version 2026.1.7, 2026.6.2, 2026.7.1, or 2026.8.0-latest.1 as confirmed by the GitHub Security Advisory (https://github.com/discourse/discourse/security/advisories/GHSA-qp9j-3v7r-wrvr) and the upstream fix commit (https://github.com/discourse/discourse/commit/92eec47e8b477cb8b4ccdb237e26dc1ba8f8b76b). For sites unable to upgrade immediately, removing all entries from the Onebox origin allowlist eliminates the bypass surface entirely, though it also disables all legitimate iframe embeds (YouTube, Vimeo, etc.) - operators should weigh this functionality trade-off carefully. A narrower compensating control is to restrict post creation or Onebox triggering to higher trust levels, reducing the pool of users who can submit URLs for resolution; this preserves embed functionality for trusted users while limiting exposure from lower-trust accounts.
Discourse versions prior to 3.5.0.beta6 contain a reflected cross-site scripting (XSS) vulnerability in social login fun
discourse-bbcode is the official BBCode plugin for Discourse. Rated critical severity (CVSS 9.8), this vulnerability is
Discourse is an open source platform for community discussion. Rated high severity (CVSS 8.2), this vulnerability is rem
Discourse versions prior to 2025.12.2, 2026.1.1, and 2026.2.0 contain an insecure direct object reference (IDOR) in the
In Discourse 2.7.0 through beta1, a rate-limit bypass leads to a bypass of the 2FA requirement for certain forms. Rated
Discourse is an open-source discussion platform. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploi
Discourse is an open source platform for community discussion. Rated medium severity (CVSS 5.9), this vulnerability is r
Discourse versions prior to 3.4.4 (stable), 3.5.0.beta5 (beta), and 3.5.0.beta6-dev (tests-passed) contain a critical vu
Discourse is an open source platform for community discussion. Rated critical severity (CVSS 9.8), this vulnerability is
Discourse Patreon enables syncronization between Discourse Groups and Patreon rewards. Rated critical severity (CVSS 9.8
Discourse is an open source platform for community discussion. Rated critical severity (CVSS 9.8), this vulnerability is
Unauthorized access to hidden post revisions in Discourse through version enumeration allows unauthenticated users to by
Same weakness CWE-20 – Improper Input Validation
View allSame technique Authentication Bypass
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-55667