CVE-2026-72721

Discourse: Onebox Domain Blocklist Bypass via Case-Sensitive Comparison

Published Aug 10, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
Discourse is an open-source discussion platform. Prior to 2026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0, Onebox::DomainChecker.is_blocked? compares hostnames and SiteSetting.blocked_onebox_domains entries case-sensitively, allowing an attacker to bypass configured Onebox domain restrictions by changing character casing in a redirect target hostname. This issue is fixed in versions 2026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0.

Analysis

AI-generated

Technical impact

Discourse's Onebox feature, which displays rich previews for URLs, checks a configured list of blocked domains to prevent certain external sites from being embedded. The vulnerability arises because the domain check is performed with a case‑sensitive comparison. By altering the letter casing of a redirect target hostname, an attacker can trick the system into treating a blocked domain as allowed, thereby bypassing the blocklist. When the domain is accepted, the Onebox preview will load content from the malicious host, potentially facilitating phishing or the execution of malicious code in users' browsers. This flaw represents a classic case of improper input validation captured by CWE‑178. The impact is that any user with the ability to craft or submit a link can introduce untrusted content into the forum.

Affected Systems

The affected product is Discourse, the open source discussion platform. Versions that are affected are any releases prior to 2026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0. All prior releases of Discourse before these specific builds are vulnerable; the patch was incorporated starting with those four releases. The configuration setting controlling the blocklist is SiteSetting.blocked_onebox_domains.

Risk and Exploitability

The CVSS base score is 5.3, indicating a moderate severity. EPSS is not available, and the vulnerability is not in CISA’s KEV catalog. An attacker can exploit the flaw simply by posting a link that redirects to a domain with altered casing, and no authentication is required. Because the attack relies on normal forum activity, it carries a relatively high potential for abuse, especially on active installations where users frequently share URLs. Consequently, the risk to affected deployments is significant until the platform is upgraded to a fixed release.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Discourse to version 2026.1.6, 2026.5.2, 2026.6.1, or 2026.7.0 or later to apply the fix that makes the domain comparison case‑insensitive.
  • Verify that your SiteSetting.blocked_onebox_domains list is populated with the domains you wish to block and that it is working correctly after the upgrade.
  • If you cannot upgrade immediately, consider disabling or limiting the Onebox feature for untrusted users or removing the feature entirely until a patch is available.

Generated by OpenCVE AI on August 10, 2026 at 17:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Discourse
Discourse discourse
Vendors & Products Discourse
Discourse discourse
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Discourse is an open-source discussion platform. Prior to 2026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0, Onebox::DomainChecker.is_blocked? compares hostnames and SiteSetting.blocked_onebox_domains entries case-sensitively, allowing an attacker to bypass configured Onebox domain restrictions by changing character casing in a redirect target hostname. This issue is fixed in versions 2026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0.
Title Discourse: Onebox Domain Blocklist Bypass via Case-Sensitive Comparison
Weaknesses CWE-178
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

Weaknesses
  • CWE-178

    Improper Handling of Case Sensitivity

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 10, 2026, 4:59 PM
Reserved
Aug 10, 2026, 1:48 PM
Status
Deferred
Published
Aug 10, 2026, 4:19 PM
Modified
Sep 8, 2026, 8:54 PM