CVE-2026-66012: Missing Authorization in siyuan-note siyuan
SiYuan before v3.7.2 contains a missing authorization vulnerability in the POST /mcp kernel endpoint, which is gated only by a general auth check (model.CheckAuth) with no admin-role or read-only enforcement. This exposes 31 MCP tools, including a file tool with list/read/write/delete/rename/copy actions across the entire workspace. When the Publish server is enabled in anonymous mode (Conf.Publish.Enable=true and Conf.Publish.Auth.Enable=false), the Publish reverse proxy attaches an anonymous RoleReader JWT to proxied requests, allowing a remote unauthenticated attacker to reach /mcp. The attacker can read conf/conf.json to extract accessAuthCode, api.token, and cookieKey in plaintext, write arbitrary files in the workspace, and plant a plugin into data/plugins/ that executes with nodeIntegration:true and no contextIsolation on the next desktop launch, leading to administrator takeover.
AI Analysis
Technical Summary
CVE-2026-66012 affects SiYuan note-taking software versions before 3.7.2. The vulnerability arises from a missing authorization check on the POST /mcp kernel endpoint, which is protected only by a general auth check without role enforcement. This endpoint exposes numerous MCP tools, including file operations across the workspace. If the Publish server is configured in anonymous mode (Conf.Publish.Enable=true and Conf.Publish.Auth.Enable=false), the reverse proxy attaches an anonymous RoleReader JWT to requests, enabling remote unauthenticated attackers to access /mcp. Attackers can read the conf/conf.json file to obtain sensitive secrets such as accessAuthCode, api.token, and cookieKey in plaintext. They can also write arbitrary files and plant malicious plugins in data/plugins/ that run with nodeIntegration:true and no contextIsolation on the next desktop launch, resulting in full administrator compromise.
Potential Impact
The vulnerability allows remote unauthenticated attackers to bypass authorization controls and perform sensitive file operations including reading configuration files containing secrets and writing arbitrary files. This can lead to planting malicious plugins that execute with high privileges, resulting in complete administrator takeover of the affected system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid enabling the Publish server in anonymous mode (Conf.Publish.Enable=true and Conf.Publish.Auth.Enable=false) to prevent exposure. Monitor vendor channels for updates and apply any official patches once released.
CVE-2026-66012: Missing Authorization in siyuan-note siyuan
Description
SiYuan before v3.7.2 contains a missing authorization vulnerability in the POST /mcp kernel endpoint, which is gated only by a general auth check (model.CheckAuth) with no admin-role or read-only enforcement. This exposes 31 MCP tools, including a file tool with list/read/write/delete/rename/copy actions across the entire workspace. When the Publish server is enabled in anonymous mode (Conf.Publish.Enable=true and Conf.Publish.Auth.Enable=false), the Publish reverse proxy attaches an anonymous RoleReader JWT to proxied requests, allowing a remote unauthenticated attacker to reach /mcp. The attacker can read conf/conf.json to extract accessAuthCode, api.token, and cookieKey in plaintext, write arbitrary files in the workspace, and plant a plugin into data/plugins/ that executes with nodeIntegration:true and no contextIsolation on the next desktop launch, leading to administrator takeover.
CVSS v4.0
Score 10.0critical
Affected software
pkg:github/siyuan-note/siyuanRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-66012 affects SiYuan note-taking software versions before 3.7.2. The vulnerability arises from a missing authorization check on the POST /mcp kernel endpoint, which is protected only by a general auth check without role enforcement. This endpoint exposes numerous MCP tools, including file operations across the workspace. If the Publish server is configured in anonymous mode (Conf.Publish.Enable=true and Conf.Publish.Auth.Enable=false), the reverse proxy attaches an anonymous RoleReader JWT to requests, enabling remote unauthenticated attackers to access /mcp. Attackers can read the conf/conf.json file to obtain sensitive secrets such as accessAuthCode, api.token, and cookieKey in plaintext. They can also write arbitrary files and plant malicious plugins in data/plugins/ that run with nodeIntegration:true and no contextIsolation on the next desktop launch, resulting in full administrator compromise.
Potential Impact
The vulnerability allows remote unauthenticated attackers to bypass authorization controls and perform sensitive file operations including reading configuration files containing secrets and writing arbitrary files. This can lead to planting malicious plugins that execute with high privileges, resulting in complete administrator takeover of the affected system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid enabling the Publish server in anonymous mode (Conf.Publish.Enable=true and Conf.Publish.Auth.Enable=false) to prevent exposure. Monitor vendor channels for updates and apply any official patches once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-23T19:22:30.643Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6498f89c2644c7f8408917
Added to database: 07/25/2026, 11:07:36 UTC
Last enriched: 08/01/2026, 20:54:38 UTC
Last updated: 09/07/2026, 10:52:10 UTC
Views: 223
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.