SiYuan vulnerabilities
243 known CVE vulnerabilities in SiYuan, translated and rated.
- CVE-2026-145078High
SiYuan before 3.8.11 contains a stored cross-site scripting vulnerability because the transactions WebSocket push fails to filter handler-named block attributes. Attackers can supply a .sy.zip import carrying an onmouseover attribute that is re-broadcast and applied when any editor updates the block, achieving code execution in the desktop build.
- CVE-2026-145076Medium
SiYuan before 3.8.11 contains an information disclosure vulnerability that allows anonymous publish visitors to read workspace document activity timestamps via the getRecentDocs endpoint. Attackers can send POST requests to /api/storage/getRecentDocs through a publish service with authentication disabled to learn when users viewed, opened, or closed visible documents.
- CVE-2026-145074Medium
SiYuan before 3.8.11 contains an improper restriction of authentication attempts that allows authenticated publish Readers to reset password-guessing throttling by authenticating to another protected document. Attackers can alternate a known password for one document with guesses against another via authFilePublishAccess to obtain its publish cookie and read protected content through getDoc.
- CVE-2026-145064Medium
SiYuan before 3.8.11 discloses whether an encrypted notebook is locked because the checkBlockFold API acquires the encrypted-notebook lease before checking publish authorization. An authenticated publish Reader who knows a valid block ID and notebook ID can send POST /api/block/checkBlockFold and infer lock state from whether it returns a lock error or an empty success response.
- CVE-2026-145062High
SiYuan 3.8.10 before 3.8.11 fails to escape custom block attribute names from imported .sy.zip files in openFileAttr's attribute panel. Attackers can craft an attribute name containing an img onerror handler that runs in the kernel origin when a victim opens the attribute panel, enabling command execution on the host.
- CVE-2026-145058Medium
SiYuan before 3.8.11 contains an observable discrepancy vulnerability in POST /api/block/getBlockDOM that allows authenticated Reader users to detect publish-disabled blocks. Attackers can compare the success response with blanked DOM against the error returned for absent IDs to reveal block existence and publish authorization state.
- CVE-2026-145057Medium
SiYuan before 3.8.11 contains a missing authorization vulnerability that allows unauthenticated attackers to force connected main clients to reauthenticate by posting to /api/system/logoutAuth. Attackers can send repeated bodyless POST requests that trigger a global logoutAuth WebSocket broadcast, redirecting clients to /check-auth and disrupting interactive workspace use.
- CVE-2026-145056Medium
SiYuan before 3.8.11 contains an information disclosure vulnerability that allows authenticated Reader users to distinguish publish-denied blocks from nonexistent blocks via /api/block/getBlockKramdowns. Attackers can submit block IDs and compare empty-value success responses against failure responses to enumerate private notes and their publish-authorization state.
- CVE-2026-145053Medium
SiYuan before 3.8.11 contains an information disclosure vulnerability that allows authenticated Reader users to learn protected Attribute View identifiers by querying the batchGetBlockAttrs endpoint. Attackers can submit a publish-visible carrier block ID to retrieve its full IAL, including custom-avs bindings that reveal private database structure in protected notebooks.
- CVE-2026-145049Medium
SiYuan before 3.8.11 lets any authenticated Reader add arbitrary positive PIDs to the global UI-process registry via POST /api/system/uiproc, without binding them to the caller or a desktop UI process. Filling the 64-entry cap blocks legitimate desktop UI registration, which can cause the kernel to shut down.
- CVE-2026-145038High
SiYuan 3.8.8-alpha.4 before 3.8.11 contains a stored cross-site scripting vulnerability because the unused asset cleanup dialog for encrypted notebooks does not treat imported asset names as plain text. Attackers can supply a notebook archive with crafted asset names that execute script in the SiYuan interface when a victim imports it and opens the cleanup dialog, putting desktop files at risk.
- CVE-2026-145032Medium
SiYuan before 3.8.11 contains a resource exhaustion vulnerability in the unauthenticated POST /api/system/loginAuth endpoint, which decodes attacker-controlled JSON without bounding the request body size. Unauthenticated attackers can send concurrent oversized JSON bodies, such as an extremely long authCode value, to drive excessive heap allocation and delay other requests, causing partial denial of service.
- CVE-2026-145029Medium
SiYuan before 3.8.11 contains an uncontrolled resource consumption vulnerability that allows authenticated Reader-role users to exhaust kernel parser capacity via the getContentWordCount endpoint. Attackers can send deeply nested div elements in the Content field, which ContentStat parses without size or depth limits, degrading API availability.
- CVE-2026-145024Medium
SiYuan before 3.8.11 contains an information disclosure vulnerability in the /api/search/searchRefBlock endpoint that allows authenticated Reader users to detect password-gated documents by comparing newDoc values. Attackers can send exactDocTitle requests with guessed titles, since newDoc is computed before publish-access filtering, to enumerate protected document existence and titles.
- CVE-2026-145023Medium
In SiYuan before 3.8.11, authenticated publish Readers can retrieve hidden inline memo content through breadcrumb labels. By sending POST requests to /api/block/getBlockBreadcrumbChildren for publish-visible documents, they can read private memo text appended to items[].name values.
- CVE-2026-145020High
SiYuan from 3.8.7 before 3.8.11 contains a TLS enforcement bypass that allows remote attackers to receive the authentication page over plaintext HTTP by adding '://' to the request query. On-path attackers can tamper with the plaintext /check-auth page to capture the workspace access code submitted to /api/system/loginAuth, gaining administrator access to notes and settings.
- CVE-2026-144211Medium
SiYuan through 3.8.12 contains an information disclosure vulnerability that allows publish readers to download raw .sy document files via the POST /api/file/getFile endpoint when Publish Service is enabled. Unauthenticated visitors can request data/<boxID>/<docID>.sy for published documents to obtain full AST JSON, exposing hidden block memos, inline memos, and attribute view bindings.
- CVE-2026-144203Medium
SiYuan through 3.8.12 contains an information disclosure vulnerability that allows publish readers to view editor-only inline memo content via the getBlockKramdown and getBlockKramdowns APIs when the Publish Service is enabled. Unauthenticated visitors, when publish Basic Auth is disabled, can request a block ID from a published document and receive private inline memo text in the returned Kramdown because TextMarkInlineMemoContent is not stripped.
- CVE-2026-140382Medium
SiYuan before 3.8.11 contains a missing authorization vulnerability in getNotebookConf that allows authenticated publish Readers to bypass notebook publish-password checks. Attackers knowing a visible password-gated notebook ID can POST to /api/notebook/getNotebookConf without the publish-auth cookie to obtain save destination, path, and template settings.
- CVE-2026-140381Medium
SiYuan before 3.8.11 contains an information disclosure vulnerability that allows authenticated publish Readers to retrieve metadata of publish-disabled Attribute View rows via global backlink contexts. Attackers can submit a public definition, snapshot, and carrier ID to /api/ref/getGlobalBacklinkContexts to learn hidden row titles and item, key, and value identifiers.
- CVE-2026-140380Medium
SiYuan before 3.8.11 contains an information disclosure vulnerability that allows authenticated publish Reader users to retrieve anchor phrases from password-gated notes via the /api/ref/getBackmentionDoc endpoint. Attackers can supply a known public defID and accessible refTreeID to obtain private anchor text in data.keywords without knowing the note password.
- CVE-2026-137474High
SiYuan 3.8.8 before 3.8.10 contains an incorrect permission assignment vulnerability: workspace directories are created with mode 0755 and conf.json with mode 0644, exposing the cleartext AccessAuthCode administrator credential. Local users able to traverse the SiYuan user's home path can read it and authenticate as administrator via Basic authentication.
- CVE-2026-137473Medium
SiYuan from 3.8.6-beta.1 before 3.8.10 contains a missing authorization vulnerability that allows read-only publish users (RoleReader) to modify persistent workspace configuration via /api/system/getChangelog. Attackers can send POST requests through the publish service proxy, even anonymously when basic authentication is disabled, to persist ShowChangelog = false to conf.json.
- CVE-2026-137472Medium
SiYuan from 3.6.2 before 3.8.10 contains a path traversal vulnerability that allows admin token holders to read files outside the workspace because the globalCopyFiles and workspaceCopyFiles denylist omits /home, /mnt, /media, and /snap. Attackers can copy other users' SSH authorized_keys, Docker and AWS configs, or mounted files into the workspace and retrieve them via the getFile API.
- CVE-2026-137471High
SiYuan before 3.8.10 contains a cross-site scripting vulnerability where WebDAV sync error formatting skips HTML escaping for certain malformed-response errors, passing raw markup to the Electron notification renderer. A network attacker who alters a cleartext HTTP WebDAV response can inject event-handler markup.
- CVE-2026-137470High
SiYuan before 3.8.11 contains a stored cross-site scripting vulnerability that allows attackers to inject DOM event handlers by storing handler-named block attributes such as onmouseover. Attackers can share crafted .sy.zip packages or Markdown files whose attributes reach renderCustom or the unsanitised preview pane.
- CVE-2026-137469High
SiYuan 3.7.0 before 3.8.11 contains a DOM-based cross-site scripting vulnerability in the AI agent chat panel, which renders final and saved assistant replies into innerHTML without HTML sanitisation. Attackers influencing model replies via indirect prompt injection or a configured model endpoint can inject event-handler markup.
- CVE-2026-137468High
SiYuan from 3.8.0 before 3.8.11 contains a lockout bypass vulnerability that allows remote attackers to brute-force publish passwords by forging client-computable publish-auth-<ID> cookies. Attackers can compute SHA-256(ID + candidate) locally and send it on content requests like /api/filetree/getDoc to guess passwords without throttling.
- CVE-2026-137467High
SiYuan before 3.8.11 uses DejaVu sync code that accepts a non-hexadecimal 40-byte remote index ID from WebDAV responses and joins it into the repository indexes path unchecked, allowing path traversal. An on-path attacker altering plaintext HTTP WebDAV sync responses can overwrite a workspace data file, such as a .sy note, with compressed index data.
- CVE-2026-134249High
SiYuan before 3.8.10 contains an authentication bypass vulnerability that allows unauthenticated attackers to gain Administrator role by spoofing X-Forwarded-For through a loopback-trusted reverse proxy. Attackers can send requests with Host set to localhost and X-Forwarded-For set to 127.0.0.1 to read private note-history contents via the /history/*path route when no lock-screen password is set.
- CVE-2026-134248High
SiYuan 3.6.0 before 3.8.10 contains an information disclosure vulnerability that allows authenticated Readers to read protected documents through block-reference footnote resolution in Markdown export. Attackers can request copyStdMarkdown for a public document referencing a hidden, disabled, or password-protected document to disclose its body text without the publish password.
- CVE-2026-134247High
SiYuan 3.8.0 before 3.8.10 contains an incorrect authorization vulnerability that allows anonymous attackers to read indexed asset text referenced only by publish-disabled attribute-view rows. Attackers can request /api/asset/getDocAssets on a public host document to obtain the leaked asset path, then query /api/search/getAssetContentByPath to retrieve the confidential file's full indexed text.
- CVE-2026-134246High
SiYuan 3.6.0 before 3.6.2 and 3.7.3 before 3.8.10 contains a missing authorization vulnerability in the /api/block/getDOMText endpoint, which renders caller-supplied DOM without checking publish access for referenced image paths. When publish authentication is disabled, anonymous visitors can submit DOM referencing a known unpublished, non-encrypted asset path to retrieve its already-cached OCR text.
- CVE-2026-134245High
SiYuan 3.8.0 before 3.8.10 contains an incorrect authorization vulnerability in the serveAssets route that allows unauthenticated attackers to read password-protected document assets via name collisions. Attackers can request GET /assets/<name> when a visible document references the same relative asset name, retrieving the protected file's contents on public-publish instances with Basic Auth disabled.
- CVE-2026-134244Medium
SiYuan 3.8.0 before 3.8.10 contains an information disclosure vulnerability in LAN sync that allows adjacent unauthenticated attackers to obtain device metadata by advertising a counterfeit peer with a replayed discovery tag. The client sends the sync scope ID, device name, OS, app version, and TLS client certificate to /peer-sync/v1/session/open before validating the server proof.
- CVE-2026-130683High
SiYuan before 3.8.10 uses an incomplete deny-list in IsSensitivePath that omits shell-initialization files such as .zshenv and .bash_profile, as well as ~/.local. Authenticated administrators can call /api/file/copyFile with an absolute destination outside the workspace to write payloads there, which execute as the user on the next shell or login.
- CVE-2026-126393Medium
SiYuan before 3.8.10 contains a server-side request forgery vulnerability in the skill-install download path because fetchBytes performs only a parse-time hostname check instead of using ssrfSafeClient. Attackers can supply a skill URL via the MCP skill install action that redirects or DNS-rebinds to loopback addresses, reaching internal services and metadata endpoints.
- CVE-2026-126266High
SiYuan from 3.6.0 before 3.8.9 contains an information disclosure vulnerability. An unauthenticated publish visitor can bypass per-document passwords via regex search in getDoc; by sending POST requests to /api/filetree/getDoc with queryMethod 3 and a broad regex, an attacker can read protected body text returned in the unfiltered keywords field.
- CVE-2026-126265High
SiYuan 2.1.0 before 3.8.9 contains a flaw where the loginAuth CAPTCHA challenge lives in a signed client-side cookie, allowing reuse of a solved challenge. An attacker can replay the original signed siyuan cookie with distinct wrong access codes to brute-force the code and gain an administrator session.
- CVE-2026-126264High
SiYuan before 3.8.9 contains an information disclosure vulnerability. An authenticated Reader user can retrieve credential-named widget files by bypassing the sensitive-path guard in getFile; by requesting paths like /data/widgets/<package>/credentials.json for publish-referenced widgets, an attacker can obtain API keys, tokens, or other stored secrets.
- CVE-2026-126776Medium
SiYuan 3.7.0 before 3.8.10 on Windows contains a path traversal vulnerability in kernel/util/webfetch.go that allows attackers to write files outside the import directory via backslash-encoded filenames. Attackers controlling a URL fetched by the MCP web_fetch or http_request tools can use %5C-encoded ..\ sequences to write chosen response bytes to directories above temp/import that are writable by the SiYuan user.
- CVE-2026-123492Medium
SiYuan before 3.8.9 contains a nil pointer dereference vulnerability in privateCacheMiddleware that allows authenticated attackers to crash the kernel by reading nonexistent MCP resources. Attackers with a valid API token can send a resources/read request in an initialized MCP session, causing a panic that terminates the kernel process and interrupts service.
- CVE-2026-118680Medium
SiYuan 3.8.7 through 3.8.8 fails to normalize Windows GLOBALROOT device-namespace aliases, bypassing the IsSensitivePath denylist. Attackers can invoke importStdMd with a GLOBALROOT-prefixed path to copy the API token and TLS private key into the publicly served assets directory.
- CVE-2026-116171Medium
SiYuan 3.5.4 before 3.8.7 on Windows contains a sensitive-path denylist bypass in IsSensitivePath because the Windows extended-length prefix (\\?\\) survives filepath.Clean and matches no forbidden prefix. Authenticated API callers can prepend the prefix to localPath in /api/import/importStdMd to copy workspace conf files, including the API token and TLS private keys, into assets served to unauthenticated clients.
- CVE-2026-116170Medium
SiYuan before v3.8.7 contains an sql injection vulnerability that allows admin-token holders to read history.db by injecting unescaped op and type=3 query values. Attackers can send crafted UNION SELECT payloads to searchHistory or getHistoryItems endpoints to exfiltrate deleted document content, titles, and paths.
- CVE-2026-116169Medium
SiYuan from 2.10.0 before 3.8.7 contains a stored cross-site scripting vulnerability that allows users with edit permission to inject script by placing javascript: URLs in math block content rendered with KaTeX trust enabled. Attackers can store \href, \url, or \includegraphics payloads that mathRender assigns via innerHTML, executing script in the application origin when a reader clicks the rendered link.
- CVE-2026-116168Medium
SiYuan before 3.8.7 contains a path traversal vulnerability in the MCP asset tool because validateAssetUploadPaths relies on an incomplete sensitive-path blacklist that omits .env and other secret files. Authenticated attackers driving the MCP asset upload action can copy such local files into the workspace and read them back via /assets/ over HTTP.
- CVE-2026-116167Medium
SiYuan from 2.9.0 before 3.8.7 contains a cross-site scripting vulnerability in the unauthenticated /check-auth page that assigns the to parameter to window.location.href without scheme validation. Attackers can send a crafted link with a javascript: URI that executes after victim login, invoking kernel APIs to read or modify workspace content and settings.
- CVE-2026-116166Medium
SiYuan 3.6.0 before 3.8.7 accepts and persists the networkServeTLS setting but never enforces it, so the kernel port keeps serving full API access over plain HTTP alongside HTTPS. Network-adjacent attackers can sniff the cleartext login flow and session cookie, which lacks the Secure attribute while responses omit HSTS, to hijack kernel API sessions.
- CVE-2026-109310Medium
SiYuan v3.1.12 before v3.8.6 fails to restrict the Sprig template function map in the /api/icon/getDynamicIcon content parameter, allowing resource exhaustion. A publish reader, or anyone when publish auth is disabled, can use uncapped functions like "until" to OOM-kill the kernel with one request.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

