All vulnerabilities

Servers and applications

CVE-2026-91157

Media uploads remain publicly accessible after category permissions are restricted

Severity
High 7.5
Published
22 Sept 2026
Last changed
20 Oct 2026
Added to UpHeron
3 Nov 2026
Fixed in
2026.1.9, 2026.7.3, 2026.8.1, 2026.9.0
Exploit chance
0.5% in the next 30 daysHigher than 42% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Information exposure (CWE-200)Incorrect authorization (CWE-863)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Also known as
GHSA-298h-xgw6-4pv3
Sources
CVE Program, Project advisories (GitHub)

Description

Sites using Discourse's secure uploads feature may expose media or attachments that an administrator expects to be private. When a category is changed from public to restricted (for example, by limiting access to specific groups), uploads that were posted while the category was public retain a flag that marks them as publicly accessible. These uploads remain reachable by anonymous users at their short URLs even after the category becomes read-restricted. This affects all previously uploaded media in the affected category, including content in topics that were deleted. The issue occurs only on sites with secure uploads enabled, and only when a previously public category is later restricted, or when category permissions are changed during a bulk import operation.

From discourse/discourse's security advisory.

Workarounds

Administrators who cannot upgrade immediately can mitigate the exposure by downloading and re-uploading the affected media through a restricted context, or by deleting the affected uploads from the server. In cases where the affected uploads are no longer needed, removing them from the Discourse storage location will prevent anonymous access.

Workarounds as given by discourse/discourse's security advisory.

Affected software

SoftwareAffected versions
DiscourseServers and applications · cna:discourse|discourse
  • Every version before 2026.1.9
  • From 2026.7.0-latest before 2026.7.3
  • From 2026.8.0-latest before 2026.8.1
  • From 2026.9.0-latest before 2026.9.0
DiscourseServers and applications · github:discourse/discourse
  • Every version before 2026.9.0
  • From 2026.1.0-latest before 2026.1.9
  • From 2026.7.0-latest before 2026.7.3
  • From 2026.8.0-latest before 2026.8.1

About Discourse

open source Internet forum software application

From Wikidata, CC0 1.0.
Docker Hub pulls
175,357Docker Hub, 15 Nov 2026
GitHub stars
48,085GitHub, 15 Nov 2026
Forks
9,063GitHub, 15 Nov 2026
License
GNU General Public License, version 2.0Wikidata
Written in
Ruby, JavaScriptWikidata
First released
2013Wikidata
First published on GitHub
12 Jan 2013GitHub

References