---
id: CVE-2026-111364
title: >-
  MinDoc through 2.2-beta.2 contains an insecure direct object reference
  vulnerability in DocumentController.Content that allows authenticated users to
  read documents from unauthorized books
summary: >-
  MinDoc through 2.2-beta.2 contains an insecure direct object reference
  vulnerability in DocumentController.Content that allows authenticated users to
  read documents from unauthorized books. Attackers holding a non-observer role
  on any bo…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-639
vendor: mindoc-org
product: MinDoc
affected:
  - MinDoc <= 2.2-beta.2
published: '2026-10-15'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T18:25:45.343'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-111364'
references:
  - url: 'https://github.com/mindoc-org/mindoc'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/mindoc-org/mindoc/blob/v2.2-beta.2/controllers/DocumentController.go#L847-L973
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/mindoc-org/mindoc/blob/v2.2-beta.2/routers/router.go#L242
    label: disclosure@vulncheck.com
  - url: >-
      https://hackmd.io/@hieuPenguinnn/mindoc-api-content-get-cross-book-document-idor
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/mindoc-through-2.2-beta.2-idor-via-api-key-content-id-get-branch
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
epss: 0.00238
epssPercentile: 0.15022
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-16T16:31:45.830855Z'
ingestedAt: '2026-10-15T22:48:25.457Z'
---

## Overview

MinDoc through 2.2-beta.2 contains an insecure direct object reference vulnerability in DocumentController.Content that allows authenticated users to read documents from unauthorized books. Attackers holding a non-observer role on any book can name that book and iterate sequential document ids to read markdown and HTML from private books.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
