CVE-2026-91157

Discourse: Media uploads remain publicly accessible after category permissions are restricted

Published Oct 14, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Discourse is an open-source discussion platform. Prior to 2026.9.0, 2026.8.1, 2026.7.3, and 2026.1.9, sites with secure uploads enabled did not reconcile existing upload security metadata when a previously public category became read-restricted or when category permissions changed during a bulk import. Media and attachments uploaded while the category was public retained a public accessibility flag and remained reachable by anonymous users through their short upload URLs, including uploads associated with deleted topics. This issue is fixed in versions 2026.9.0, 2026.8.1, 2026.7.3, and 2026.1.9.

Analysis

AI-generated

Technical impact

The vulnerability occurs because Discourse encrypts upload metadata but does not reconcile it when a category that was public becomes read‑restricted or when permissions change during a bulk import. A media file or attachment uploaded while the category was public retains a public accessibility flag, allowing anyone who knows the short URL to view or download it—even if the category later becomes private or the topic was deleted. The flaw enables unauthorized disclosure of content that was intended to be restricted, potentially exposing personal data, violating privacy policies, or aiding further threats. This vulnerability is a CWE‑200 and CWE‑863 flaw.

Affected Systems

The issue is limited to Discourse, the open‑source discussion platform. All releases older than 2026.9.0, 2026.8.1, 2026.7.3, and 2026.1.9 are vulnerable when secure uploads are enabled and a category changes from public to restricted or is impacted by a bulk import. Upgrade to any of these four fixed releases removes the issue.

Risk and Exploitability

The CVSS score of 7.5 classifies the flaw as high severity. The EPSS score is < 1%, indicating a very low but nonzero likelihood of exploitation, and the vulnerability is not listed in CISA's KEV catalog. Attackers can reach the vulnerable media simply by accessing a known or guessable short URL, so the attack vector is remote and does not require privileged credentials. Exploitation requires that the site has secure uploads enabled and that the category permissions have been modified after the upload; the attacker must only preserve the existing URL, making the flaw readily exploitable under these conditions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Discourse instance to version 2026.9.0, or to 2026.8.1, 2026.7.3, or 2026.1.9, which contain the security fix.
  • Run an administrative script or use the Discourse API to set the ‘public’ flag to false on all existing uploads that were granted public visibility by legacy category settings.
  • If an immediate upgrade is not possible, temporarily disable the secure uploads feature for the affected site until a patch can be applied and then re‑enable it after correcting permissions.
  • Review and delete or rebuild any short URLs that were exposed to anonymous users to ensure no unintended content remains publicly accessible.

Generated by OpenCVE AI on October 15, 2026 at 18:16 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.9.0, 2026.8.1, 2026.7.3, and 2026.1.9, sites with secure uploads enabled did not reconcile existing upload security metadata when a previously public category became read-restricted or when category permissions changed during a bulk import. Media and attachments uploaded while the category was public retained a public accessibility flag and remained reachable by anonymous users through their short upload URLs, including uploads associated with deleted topics. This issue is fixed in versions 2026.9.0, 2026.8.1, 2026.7.3, and 2026.1.9.
Title Discourse: Media uploads remain publicly accessible after category permissions are restricted
Weaknesses CWE-200
CWE-863
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-863

    Incorrect Authorization

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 20, 2026, 1:35 AM
Reserved
Sep 14, 2026, 9:20 PM
Status
Deferred
Published
Oct 14, 2026, 4:17 PM
Modified
Oct 20, 2026, 2:17 AM