{"id":"CVE-2026-66012","aliases":["CVE-2026-66012"],"related":[],"kind":"vulnerability","state":"published","title":"SiYuan before v3.7.2 Unauthenticated Administrator Takeover via MCP","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-07-25T10:45:56.085Z","modified":"2026-10-24T13:10:00.147Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","score":10,"rating":"CRITICAL"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","score":10,"rating":"CRITICAL"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"}],"cwes":["CWE-862"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"3.7.2","status":"affected"},{"type":"semver","version":"3.7.2","status":"unaffected"}],"vendor":"siyuan-note","product":"siyuan","source":"cvelist"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-cvhv-7xhj-xjp8","tags":["exploit","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/siyuan-note/siyuan/commit/c72ca4cd09019e5f64afdee8f8c6ec5ef34858db","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/siyuan-before-unauthenticated-administrator-takeover-via-mcp","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["hypnguyen1209"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-07-27T14:06:39.063Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-66012","url":"https://www.cve.org/CVERecord?id=CVE-2026-66012","licence":"CVE Terms of Use","modified":"2026-09-17T17:54:38.571Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-66012","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-66012","licence":"Public domain","modified":"2026-10-24T13:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:30.161Z","epss":{"score":0.00764,"percentile":0.51775,"date":"2026-11-30T12:00:22.000Z"}}