Incorrect authorization in Discourse - CVE-2026-91157

 

Incorrect authorization in Discourse - CVE-2026-91157

Published: October 28, 2026


Vulnerability identifier: #VU158257
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-91157
CWE-ID: CWE-863
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to access media and attachments intended to be private.

The vulnerability exists due to incorrect authorization in Discourse's upload access controls when category permissions are changed from public to restricted, including during bulk import operations. A remote attacker can request the short URLs of previously public uploads that retain their public-access flag to access media and attachments despite the category's read restrictions.

Only sites with secure uploads enabled are affected. The exposure also includes uploads in deleted topics.


Affected software

Discourse

How to mitigate CVE-2026-91157

Install security update from vendor's website.

Discourse - addressed in versions 2026.1.9, 2026.7.3, 2026.8.1, 2026.9.0

External References

Related Security Bulletins