CVE-2026-66012

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.
Configurations

No configuration.

History

24 Oct 2026, 13:10

Type Values Removed Values Added
Summary
  • (es) SiYuan antes de v3.7.2 contiene una vulnerabilidad de autorización faltante en el endpoint del kernel POST /mcp, que está protegido solo por una verificación de autenticación general (model.CheckAuth) sin aplicación de rol de administrador o de solo lectura. Esto expone 31 herramientas MCP, incluyendo una herramienta de archivos con acciones de listar/leer/escribir/eliminar/renombrar/copiar en todo el espacio de trabajo. Cuando el servidor de publicación está habilitado en modo anónimo (Conf.Publish.Enable=true y Conf.Publish.Auth.Enable=false), el proxy inverso de publicación adjunta un JWT RoleReader anónimo a las solicitudes proxy, permitiendo a un atacante remoto no autenticado alcanzar /mcp. El atacante puede leer conf/conf.json para extraer accessAuthCode, API.token y cookieKey en texto plano, escribir archivos arbitrarios en el espacio de trabajo y plantar un plugin en data/plugins/ que se ejecuta con nodeIntegration:true y sin contextIsolation en el próximo inicio de escritorio, lo que lleva a la toma de control del administrador.

Information

Published : 2026-07-25 11:17

Updated : 2026-10-24 13:10


NVD link : CVE-2026-66012

Mitre link : CVE-2026-66012

CVE.ORG link : CVE-2026-66012


JSON object : View

Products Affected

No product.

CWE
CWE-862

Missing Authorization