SB2026102816 - Multiple vulnerabilities in Discourse



SB2026102816 - Multiple vulnerabilities in Discourse

Published: October 28, 2026

Security Bulletin ID SB2026102816
CSH Severity
Medium
Patch available
YES
Number of vulnerabilities 8
Exploitation vector Remote access
Highest impact Data manipulation

Breakdown by Severity

Medium 13% Low 88%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 8 vulnerabilities.


1) SQL injection (CVE-ID: CVE-2026-91133)

CWE-ID: CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

CVSSv4: 7.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to disclose restricted upload metadata, including original filenames and secure-upload paths.

The vulnerability exists due to improper escaping of SQL LIKE metacharacters in Discourse upload-resolution lookups when processing user-supplied upload identifiers. A remote user can supply identifiers containing wildcard characters to match unrelated upload records and disclose metadata for uploads they cannot access through the metadata, URL-lookup, and cooked-video-placeholder paths.


2) Incorrect Behavior Order: Validate Before Canonicalize (CVE-ID: CVE-2026-91134)

CWE-ID: CWE-180 - Incorrect Behavior Order: Validate Before Canonicalize

CVSSv4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to bypass iframe source restrictions and embed content from an attacker-controlled host in posts.

The vulnerability exists due to insufficient validation of encoded iframe source URLs in the Discourse post sanitizer when checking the allowed_iframes prefix policy. A remote user can submit a post containing an iframe source with encoded userinfo to bypass the allowlist and cause a browser to load content from an attacker-controlled host.


3) Path traversal (CVE-ID: CVE-2026-91123)

CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to bypass iframe URL restrictions, potentially exposing sensitive information or embedding unauthorized content.

The vulnerability exists due to improper handling of backslash path separators in the iframe src traversal guard when validating iframe source URLs. A remote attacker can supply a URL containing decoded dot segments followed by a literal backslash to cause browser URL normalization to resolve the URL outside its allowlisted subpath and bypass iframe content restrictions.


4) Cross-site scripting (CVE-ID: CVE-2026-91119)

CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CVSSv4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]


The vulnerability allows a remote user to inject arbitrary HTML into Discourse content displayed to other users.

The vulnerability exists due to missing URL encoding in the topic small-action and nested-activity-log components when interpolating free-form action_code_who values into trusted mention-link href attributes. A remote user can supply a quote-bearing display name such as "><img src=x> to terminate an attribute and inject HTML elements into the rendered content.


5) Interpretation Conflict (CVE-ID: CVE-2026-91132)

CWE-ID: CWE-436 - Interpretation Conflict

CVSSv4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to bypass the iframe origin allowlist and embed content from an attacker-controlled origin in Discourse posts.

The vulnerability exists due to inconsistent URL authority parsing in Discourse's iframe origin allowlist validation when processing Onebox oEmbed responses on sites configured with wildcard allowlist patterns. A remote user can create a post or otherwise trigger an oEmbed request for a controlled URL that returns an iframe source containing an authority separator before the allowed suffix to pass the allowlist check while causing the browser to load content from a different origin.


6) Improper Encoding or Escaping of Output (CVE-ID: CVE-2026-91121)

CWE-ID: CWE-116 - Improper Encoding or Escaping of Output

CVSSv4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to inject HTML into chat message excerpts displayed to other users.

The vulnerability exists due to improper output escaping in Discourse's chat excerpt renderers when rendering upload filenames. A remote user can upload a file with specially crafted markup in its filename to inject HTML into chat channel lists, chat summary emails, pinned message bars, and reply or thread previews.

JavaScript execution was not demonstrated with Discourse's default security settings.


7) Cross-site scripting (CVE-ID: CVE-2026-91122)

CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CVSSv4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]


The vulnerability allows a remote user to execute arbitrary JavaScript in a viewer’s session, read page content, and make authenticated requests on the viewer’s behalf.

The vulnerability exists due to improper neutralization of HTML attributes in the Discourse video placeholder component when rendering crafted post content. A remote user can post crafted HTML that breaks out of an attribute and injects an event handler to execute arbitrary JavaScript when a viewer opens the post and clicks the video placeholder’s play overlay.

Exploitation requires an instance with Content Security Policy (CSP) disabled or relaxed to permit inline event handlers.


8) Cross-site scripting (CVE-ID: CVE-2026-91120)

CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CVSSv4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]


The vulnerability allows a remote user to inject arbitrary HTML and potentially browser-executable event handlers into video notification emails and chat summaries.

The vulnerability exists due to improper neutralization of HTML in Discourse's email and chat-summary rendering path when processing provider-controlled video titles with lazy video embeds and the relevant video provider enabled. A remote user can post a video with a specially crafted provider-controlled title that is re-parsed as HTML to inject content and potentially executable event handlers into generated emails or chat summaries.


Remediation

Install update from vendor's website.