---
id: CVE-2026-111364
title: 'MinDoc through 2.2-beta.2 IDOR via /api/:key/content/:id GET Branch'
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'
cvssSource: cna
cwe:
  - CWE-639
vendor: mindoc-org
product: MinDoc
affected:
  - MinDoc <= 2.2-beta.2
published: '2026-10-15'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T21:43:48.449Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-111364'
references:
  - url: >-
      https://hackmd.io/@hieuPenguinnn/mindoc-api-content-get-cross-book-document-idor
  - url: >-
      https://github.com/mindoc-org/mindoc/blob/v2.2-beta.2/controllers/DocumentController.go#L847-L973
  - url: >-
      https://github.com/mindoc-org/mindoc/blob/v2.2-beta.2/routers/router.go#L242
  - url: 'https://github.com/mindoc-org/mindoc'
  - url: >-
      https://www.vulncheck.com/advisories/mindoc-through-2.2-beta.2-idor-via-api-key-content-id-get-branch
    label: >-
      VulnCheck Advisory: MinDoc through 2.2-beta.2 IDOR via
      /api/:key/content/:id GET Branch
tags:
  - cve.org
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.

## Affected

- `MinDoc <= 2.2-beta.2`

## Remediation

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