Description
Discourse is an open-source discussion platform. Prior to 2026.1.8, 2026.6.3, 2026.7.2, and 2026.8.0, the iframe src traversal guard did not treat literal backslashes as path separators after decoded dot segments. A crafted source could therefore pass an allowed_iframes subpath check while browser URL normalization moved the iframe outside the intended allowed path. The resulting iframe could load content from a location that the administrator did not allow. This issue is fixed in versions 2026.1.8, 2026.6.3, 2026.7.2, and 2026.8.0.
Published: 2026-09-24
Score: 7.2 High
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized iframe content injection
Action: Immediate Patch
AI Analysis

Impact

Discourse, an open‑source discussion platform, had a path traversal flaw in its iframe src guard, which failed to treat literal backslashes as path separators after decoding dot segments. A malicious user could craft an iframe source that passes the allowed_iframes subpath check but, due to browser URL normalization, resolves to a location outside the intended path. This allows loading of arbitrary content that the administrator did not authorize, potentially leading to cross‑site scripting or phishing attacks when users view the injected content.

Affected Systems

The issue is present in Discourse versions older than 2026.1.8, 2026.6.3, 2026.7.2 and 2026.8.0. Administrators using these releases should consider them vulnerable until the fix is applied.

Risk and Exploitability

The CVSS score of 7.2 indicates a high severity, and while EPSS data is not available, the lack of listing in the CISA KEV catalog suggests no widespread exploitation yet. Nevertheless, the flaw can be abused by anyone who can add an iframe to a post or comment. An attacker could supply a crafted iframe source that circumvents the whitelist, causing the browser to request content from an arbitrary internal or external location. If the attacker controls that content, further compromise such as phishing or supply‑chain attacks is possible. The issue remains an authentication‑agnostic flaw and therefore can be triggered by unauthenticated or low‑privilege users, making it relatively low‑cost to execute.

Generated by OpenCVE AI on September 25, 2026 at 06:47 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Discourse to version 2026.1.8, 2026.6.3, 2026.7.2, or 2026.8.0 or later.
  • If an upgrade cannot be performed immediately, disable the ability for users to embed iframes or restrict allowed iframe sources to a whitelist of trusted domains.
  • Implement additional server‑side validation to block any iframe source URLs that resolve outside the approved path, such as using a reverse proxy or content security policy.

Generated by OpenCVE AI on September 25, 2026 at 06:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 24 Sep 2026 19:30:00 +0000

Type Values Removed Values Added
First Time appeared Discourse
Discourse discourse
Vendors & Products Discourse
Discourse discourse

Thu, 24 Sep 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 24 Sep 2026 17:00:00 +0000

Type Values Removed Values Added
Description Discourse is an open-source discussion platform. Prior to 2026.1.8, 2026.6.3, 2026.7.2, and 2026.8.0, the iframe src traversal guard did not treat literal backslashes as path separators after decoded dot segments. A crafted source could therefore pass an allowed_iframes subpath check while browser URL normalization moved the iframe outside the intended allowed path. The resulting iframe could load content from a location that the administrator did not allow. This issue is fixed in versions 2026.1.8, 2026.6.3, 2026.7.2, and 2026.8.0.
Title Discourse: Reject literal backslash path separators in iframe src traversal guard
Weaknesses CWE-22
References
Metrics cvssV3_1

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


Subscriptions

Discourse Discourse
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-24T17:11:34.752Z

Reserved: 2026-09-14T19:36:48.843Z

Link: CVE-2026-91123

cve-icon Vulnrichment

Updated: 2026-09-24T17:11:30.907Z

cve-icon NVD

Status : Deferred

Published: 2026-09-24T17:17:08.560

Modified: 2026-09-24T18:19:06.883

Link: CVE-2026-91123

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T07:00:03Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')