Discourse <=2026.2.0 - Hidden Post Revision Disclosure via revert_to Authorization Bypass
Discourse versions before 2026.1.2, 2026.2.1, and 2026.3.0-latest.1 contain an authorization bypass in PostsController#display_post. The controller calls post.revert_to(params[:version]) directly whenever a version query parameter is present, without checking whether the corresponding PostRevision is hidden or whether the caller has permission to view edit history. By requesting a post at its publicly known version number via GET /posts/:id.json?version= , the next PostRevision's stored modifications are applied unconditionally. If staff have hidden that revision, its pre-edit content is returned to an unauthenticated caller. On patched installs the same request is rejected with 403 because guardian.ensure_can_see!(post_revision) is evaluated first. References: https://github.com/discourse/discourse/security/advisories/GHSA-fq69-f929-wp96 https://github.com/discourse/discourse/commit/8510fde30eb0d7f2dee822a95f6cf43b9ac943d0 https://nvd.nist.gov/vuln/detail/CVE-2026-27454 Remediation: Upgrade Discourse to 2026.1.2, 2026.2.1, 2026.3.0-latest.1, or later.
Used 20 times · 10 assets checked · domain, subdomain, ipv4