Skip to main content
Vulnerability Database/CVE-2026-111645

CVE-2026-111645: MrDoc Authorization Bypass Vulnerability

CVE-2026-111645 is an authorization bypass flaw in MrDoc that allows authenticated users to modify other users' documents and projects through the ImportLocalDoc API. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-111645 Overview

CVE-2026-111645 is a missing object-level authorization vulnerability affecting MrDoc through version 1.1.1. The flaw resides in the ImportLocalDoc API endpoint within app_doc/views_import.py, which fails to verify that the authenticated requester owns the target document or project. Authenticated low-privilege users can send crafted PUT requests with arbitrary sort_data document IDs to publish private drafts belonging to other users and reparent their documents. They can also send POST requests with arbitrary top_doc IDs to inject documents into projects they do not own. The weakness is classified as [CWE-639] Authorization Bypass Through User-Controlled Key.

Critical Impact

Any authenticated MrDoc user can modify, reparent, or publish other users' private documents through the ImportLocalDoc API without owning them.

Affected Products

  • MrDoc versions up to and including 1.1.1
  • MrDoc app_doc/views_import.py ImportLocalDoc API handler
  • Self-hosted MrDoc deployments exposing the import endpoint to authenticated users

Discovery Timeline

  • 2026-10-16 - CVE-2026-111645 published to the National Vulnerability Database
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-111645

Vulnerability Analysis

MrDoc is an open-source documentation platform that organizes content into projects (doc_project) and hierarchical documents (doc). The ImportLocalDoc API accepts user-controlled identifiers for the parent project and target documents, then updates records in the database. The handler at app_doc/views_import.py lines 165–182 does not validate whether the authenticated session owns the referenced objects. This design flaw turns a routine import workflow into a cross-user data manipulation primitive.

Two exploitation paths exist. A PUT request supplies sort_data entries containing document IDs that belong to another user. The server updates those documents' sort order and publication state, publishing private drafts and reparenting them under the attacker's project. A POST request supplies a top_doc ID that points to a project owned by a different user, causing the imported document to be injected into the victim's project tree.

Root Cause

The root cause is a missing ownership check between the authenticated principal and the object referenced by the request. The code trusts client-supplied primary keys without filtering queries by the current user's request.user relationship. This pattern is the textbook definition of Insecure Direct Object Reference and maps directly to [CWE-639].

Attack Vector

Exploitation requires only a valid low-privilege account on the target MrDoc instance. The attacker enumerates or guesses sequential document and project IDs, then issues PUT or POST requests to the ImportLocalDoc endpoint with those IDs embedded in sort_data or top_doc parameters. No special privileges, user interaction, or chained vulnerabilities are required. See the HackMD Missing Authz Analysis and the GitHub MrDoc Code Review for request structure and vulnerable source lines.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-111645

Indicators of Compromise

  • Previously private documents transitioning to published state without owner activity in audit logs
  • Documents reparented under projects owned by unrelated accounts
  • Unexpected document records appearing inside projects without matching creation events from the project owner
  • PUT or POST requests to the ImportLocalDoc API containing document or project IDs the requesting user does not own

Detection Strategies

  • Instrument the ImportLocalDoc view to log the authenticated user alongside every sort_data and top_doc ID submitted, then correlate ownership mismatches
  • Review web server access logs for high-frequency enumeration patterns against /import_doc/ or related ImportLocalDoc routes
  • Compare the create_user field on documents and projects against the user ID in the session that performed the last modification

Monitoring Recommendations

  • Alert on any state change where a document's status field flips from draft to published without a matching request from its create_user
  • Monitor for bursts of modifications spanning many distinct top_doc project IDs from a single session, which indicates ID enumeration
  • Capture full request bodies for ImportLocalDoc endpoints to enable retrospective analysis if abuse is suspected

How to Mitigate CVE-2026-111645

Immediate Actions Required

  • Restrict access to the MrDoc instance to trusted users until a patched release is deployed
  • Audit document and project ownership records for unauthorized state changes or reparenting
  • Review the VulnCheck Advisory on MrDoc for the current remediation status

Patch Information

No fixed version is identified in the published advisory data. All MrDoc releases through 1.1.1 are affected. Operators should track the upstream MrDoc repository for a post-1.1.1 release that enforces ownership checks in views_import.py and apply it as soon as it becomes available.

Workarounds

  • Apply a local source patch to app_doc/views_import.py that filters doc and doc_project queries by create_user=request.user before performing updates
  • Disable the ImportLocalDoc feature or route if it is not required in your deployment
  • Place the MrDoc application behind an authenticating reverse proxy and limit accounts to trusted collaborators to reduce the pool of potential attackers
bash
# Example reverse-proxy restriction (nginx) limiting ImportLocalDoc to admin IPs
location ~ ^/import_doc/ {
    allow 10.0.0.0/24;   # admin subnet
    deny all;
    proxy_pass http://mrdoc_upstream;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.