CVE-2026-66012
JSON

10.0critical

SiYuan before v3.7.2 Unauthenticated Administrator Takeover via MCP

Severity
10.0critical CVSS:4.0 by VulnCheck
Exploit likelihood
0.76% (higher than 52% of CVEs)
Published
Last changed
Assigned by
VulnCheck

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.

Affected

Product or packageVersionsReported by
siyuan-note siyuanbefore 3.7.2
Not affected: 3.7.2
CVE List

All scores

VulnCheck10.0critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
VulnCheck10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Classification

CWE-862

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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.

NVD (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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-66012 changed 2026-09-17CVE Terms of Use
NVDCVE-2026-66012 changed 2026-10-24Public domain