{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-66012 exists.","fix":"No fix has been published for CVE-2026-66012 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-66012 is a critical missing authorization vulnerability in siyuan-note siyuan, published on 25 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-66012 and fix it if it is affected.\n\nWhat it is: CVE-2026-66012 is a critical missing authorization vulnerability in siyuan-note siyuan, published on 25 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-66012 exists.\n\nAffected product: siyuan-note siyuan. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-66012/ (Markdown: https://insights.sbomify.com/CVE-2026-66012/index.md)","id":"CVE-2026-66012","markdown":"https://insights.sbomify.com/CVE-2026-66012/index.md","name":"CVE-2026-66012","record":{"aliases":["GHSA-cvhv-7xhj-xjp8","GHSA-hp8g-g2qj-wgpj"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["privilege_escalation","code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"SiYuan note-taking app","requires_auth":"none","summary":"Unauthenticated attackers can take over SiYuan administrator accounts and execute code if the Publish server is enabled in anonymous mode.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":10,"severity":"critical","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-07-26","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-07-26T10:45:03Z","kind":"github_poc","ref":"https://github.com/Hunt-Benito/siyuan-mcp-admin-takeover-cve-2026-66012-missing-authorization","stars":1,"title":null}],"tier":"weaponised"},"has_fix":false,"headline":"SiYuan before v3.7.2 Unauthenticated Administrator Takeover via MCP","id":"CVE-2026-66012","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"missing_authorization","year":"2026"},"n_packages":0,"n_references":3,"next":{"headline":"OpenRemote before 1.26.2 Authentication Bypass via Console Registration","id":"CVE-2026-66013"},"packages":[],"prev":{"headline":"ImageMagick before 7.1.2-27 Memory Leak via Invalid CLI Options","id":"CVE-2026-66011"},"products":["siyuan"],"published":"2026-07-25","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-17","vendors":["siyuan-note"]},"summary":"Unauthenticated attackers can take over SiYuan administrator accounts and execute code if the Publish server is enabled in anonymous mode.","url":"https://insights.sbomify.com/CVE-2026-66012/"}