SiYuan vulnerabilities
243 known CVE vulnerabilities in SiYuan, translated and rated.
- CVE-2026-145039Critical
SiYuan before 3.8.11 contains a stored cross-site scripting vulnerability in the protyle asset picker's renderAssetList, which inserts unescaped asset filenames via innerHTML. Attackers can supply a .sy.zip import with a malicious filename that runs script when the victim opens the asset picker, reaching Node APIs for code execution.
- CVE-2026-130682Critical
SiYuan before 3.8.10 persists a table block's caption attribute into IAL properties without HTML sanitization, causing stored cross-site scripting upon import or sync. Attackers can inject an entity-encoded caption with an onerror handler that executes in the Electron client's nodeIntegration context to achieve remote code execution.
- CVE-2026-130681Critical
SiYuan before 3.8.10 contains a stored cross-site scripting vulnerability, an incomplete fix for CVE-2026-44670, because renderAVAttribute() inserts an Attribute View name unescaped into the database row attribute panel header. Attackers who can persist the name, such as via the setAttrViewName action, can inject an onerror handler that runs OS commands through Node.js when a desktop user opens the panel.
- CVE-2026-130680Critical
SiYuan from 3.3.0 before 3.8.10 contains a stored cross-site scripting vulnerability that allows attackers to inject HTML via unescaped checkbox column names in Gallery and Kanban AttributeView renderers. Attackers can share a crafted .sy.zip document whose rendering in the Electron desktop client with nodeIntegration enabled executes Node.js and host OS commands.
- CVE-2026-130679Critical
SiYuan before 3.8.10 contains a stored cross-site scripting vulnerability in genAVValueHTML() that allows attackers who can store Attribute View asset values to inject script through an unescaped image src attribute. Attackers can store an image URL containing a double quote and onerror handler that executes OS commands via Node.js in the desktop app when victims open the bound note or row attribute panel.
- CVE-2026-130678Critical
SiYuan before 3.8.10 contains a stored cross-site scripting vulnerability that allows attackers to execute script by storing malicious Attribute View column names rendered unescaped in col.ts. Attackers can inject HTML via addAttributeViewKey, .sy.zip import, or sync, and when a victim adds or duplicates the column, insertAdjacentHTML runs JavaScript with Node.js privileges for desktop code execution.
- CVE-2026-84803Critical
SiYuan before version 3.8.2 contains a stored cross-site scripting vulnerability in asset serving due to an incomplete extension blocklist that misses script-capable file types. Attackers can upload files with extensions like .xht, .ehtml, .xsl, .xbl, or .rdf that resolve to executable media types and execute JavaScript to steal API tokens and compromise workspaces.
- CVE-2026-77086Critical
SiYuan before v3.7.4 fails to validate the packageName parameter in Bazaar install and uninstall endpoints, allowing authenticated administrators to perform path traversal. Attackers with admin access can write arbitrary files or recursively delete directories by supplying crafted packageName values.
- CVE-2026-74800Critical
SiYuan before v3.7.4 fails to set Content-Disposition and X-Content-Type-Options headers when serving arbitrary file assets, allowing stored cross-site scripting attacks. Authenticated attackers can upload HTML files as assets and execute scripts with full kernel API access when the workspace owner opens the asset link.
- CVE-2026-74799Critical
SiYuan before 3.7.4 registers Go net/http/pprof debug endpoints including heap and goroutine dumps without authentication when --mode flag is not set to exactly prod. Attackers can access /debug/pprof/heap and related endpoints to extract in-memory secrets including AccessAuthCode and AI provider API keys.
- CVE-2026-73056Critical
SiYuan kernel versions before 3.7.4 contain an improper restriction of excessive authentication attempts vulnerability in the CheckAuth() middleware. The middleware accepts the API token via an Authorization header or ?token= query parameter, and neither path is protected by CAPTCHA/lockout. An unauthenticated remote attacker can perform unlimited automated guesses of the API token, especially when a short or weak custom token is configured, and upon success gains full RoleAdministrator access enabling arbitrary file operations and SQL queries.
- CVE-2026-73053Critical
SiYuan versions before v3.7.4 contain a cross-site scripting vulnerability in the unicode2Emoji function that fails to sanitize codepoint branch output. Attackers can craft document icons with hex-encoded markup that executes in the renderer with Node integration enabled, achieving arbitrary code execution on the host system.
- CVE-2026-73052Critical
SiYuan before v3.7.4 stores attribute-view field names without HTML escaping and interpolates them directly into option elements via innerHTML in the sort menu. Attackers can inject markup by renaming a database field to execute arbitrary JavaScript when users open the sort menu, with Node integration enabled in the desktop client enabling code execution.
- CVE-2026-73050Critical
SiYuan versions before v3.7.4 fail to validate or escape the color field in attribute-view select options, allowing stored cross-site scripting through eight unescaped render sites. Attackers can inject event-handler attributes by including quotation marks in the color value, executing arbitrary JavaScript when viewing databases containing the malicious select field.
- CVE-2026-73046Critical
SiYuan before v3.7.4 improperly restricts excessive authentication attempts in the CheckAuth() middleware. The HTTP Basic Authentication branch, which guards nearly the entire /api/* surface, accepts the workspace access code as the Basic Auth password but never consults the CAPTCHA/lockout gate or increments the failure counter used by the cookie/session login path. This allows unauthenticated remote attackers to brute-force the admin access code with unlimited automated requests and obtain full RoleAdministrator access to the kernel. A secondary weakness exists because the access code is compared using a non-constant-time string comparison.
- CVE-2026-73044Critical
SiYuan versions before v3.7.4 fail to validate or escape table column width values, allowing stored cross-site scripting injection into style attributes. Attackers can inject malicious payloads through the setAttrViewColWidth API that break out of style attributes and inject event handlers on every table cell, executing arbitrary code in the Electron renderer with Node integration enabled.
- CVE-2026-73043Critical
SiYuan versions before v3.7.4 contain a remote code execution vulnerability in the Template calculation operator, which renders user-authored Go templates and stores output verbatim without sanitization. Attackers can inject malicious HTML and JavaScript into template calculations that execute in the desktop client renderer with Node integration enabled, allowing arbitrary code execution when the database is opened.
- CVE-2026-73042Critical
SiYuan before v3.7.4 fails to properly escape database menu metadata in HTML interpolation, allowing stored values to execute script when users open group, view, or field-edit menus. Attackers can inject markup through field descriptions or names that close containing elements and execute arbitrary code via event handlers, reaching Node built-ins due to Electron's insecure configuration.
- CVE-2026-73041Critical
SiYuan versions before v3.7.4 fail to validate or escape annotation fields written to disk by the setFileAnnotation endpoint. Attackers can inject malicious markup into annotation fields that execute as script in the PDF renderer with full Node.js access when a user opens an annotated PDF.
- CVE-2026-72811Critical
SiYuan versions <= v3.7.2 contain a SQL injection vulnerability in the backlink/mention search query (kernel/model/backlink.go), which concatenates stored block metadata (title, name, alias, anchor text) and the client-supplied keyword into a SQL MATCH/search statement while escaping only the double-quote character and not the single quote. A single quote in the client keyword (first-order, reachable by an anonymous or RoleReader user on the publish surface) or in stored document metadata (second-order) breaks out of the string literal. Because the query runs on the main read-write siyuan.db handle via a statement-stacking-capable driver, an attacker can execute arbitrary SQL, enabling cross-notebook read and write. Fixed in v3.7.4.
- CVE-2026-69085Critical
SiYuan before v3.7.3 contains a SQL injection vulnerability in the /api/filetree/searchDocs endpoint, where the caller-supplied keyword parameter is concatenated directly into SQL statements with no escaping or parameter binding. The endpoint is reachable by a publish RoleReader token, or unauthenticated when publish mode is enabled with Publish.Auth.Enable set to false. Because the statement executes on a read-write SQLite handle via a driver that supports stacked (semicolon-separated) statements, an attacker can read and modify database content across all cleartext (non-encrypted) notebooks on the instance.
- CVE-2026-69084Critical
SiYuan versions <= v3.7.2 expose the /api/search/searchEmbedBlock endpoint, which passes a client-supplied SQL statement verbatim to the main read-write siyuan.db handle with no single-statement, read-only, or admin restrictions. The endpoint is gated only by CheckAuth, making it reachable by the publish RoleReader token and by anonymous users when publish authentication is disabled. Because the underlying driver executes stacked statements, an attacker can read and modify content across all opened cleartext notebooks (encrypted per-box notebooks are excluded). Fixed in v3.7.3.
- CVE-2026-69083Critical
SiYuan versions before v3.7.3 contain SQL injection vulnerabilities in the fullTextSearchAssetContent endpoint reachable by unauthenticated users and publish RoleReader tokens. Attackers can execute arbitrary SQL on the read-write asset-content database via unescaped method parameters and REGEXP clauses to read, modify, or delete cross-notebook data.
- CVE-2026-66395Critical
SiYuan desktop before version 3.7.2 contains a reflected cross-site scripting vulnerability in the bazaar plugin readme handler. An attacker can craft a malicious siyuan:// deep link that, when clicked, executes arbitrary JavaScript with full Node.js access via insertAdjacentHTML in an insecurely configured Electron renderer.
- CVE-2026-66012Critical
SiYuan before v3.7.2 contains a missing authorization vulnerability in the POST /mcp kernel endpoint, gated only by a general auth check with no admin-role or read-only enforcement, exposing 31 MCP tools including file operations across the entire workspace.
- CVE-2026-65606Critical
SiYuan before version v3.7.2 contains a cross-site scripting vulnerability in the siyuan:// protocol handler. When a siyuan://plugins/<name> link references a non-existent plugin, the application opens a custom tab and inserts the link's icon parameter into the tab header via innerHTML without escaping, allowing injection of an <img onerror=...> element. Because the SiYuan Desktop renderer runs with nodeIntegration:true, the injected JavaScript can access Node's require and call require('child_process').execSync(...), escalating XSS to arbitrary OS command execution.
- CVE-2026-65605Critical
SiYuan before version v3.7.2 contains a stored cross-site scripting vulnerability in Attribute View (database) cell rendering. A Template column value is rendered as HTML via text/template without auto-escaping, and EscapeHTML is only applied when HasUnclosedHtmlTag returns true; because balanced self-closing tags such as <img> are skipped by that check, a payload like <img src=x onerror=...> is stored unescaped and later inserted into the page via innerHTML, executing when the database is viewed. Because the desktop renderer runs with nodeIntegration enabled, the injected script can reach require and escalate to arbitrary command execution.
- CVE-2026-55570Critical
SiYuan is an open-source personal knowledge management system that prior to version 3.7.0 did not escape untrusted fields (name, version, author, description) when serialized into the data-obj HTML attribute of each marketplace card. As a result, a package containing a single quote could inject arbitrary HTML, escalating from DOM XSS to arbitrary OS command execution.
- CVE-2026-54068Medium
SiYuan is a knowledge management system that prior to version 3.7.0 had the /api/icon/getDynamicIcon endpoint which did not require authentication. Attackers can exploit this endpoint to execute arbitrary SELECT queries against the SiYuan SQLite database, leading to data leakage.
- CVE-2026-54067Critical
SiYuan is an open-source personal knowledge management system. Prior to version 3.7.0, a CSS snippet body containing </style> breaks out of its surrounding <style> tag, allowing arbitrary JavaScript execution in the renderer. On Electron desktop builds, the renderer runs with nodeIntegration:true, enabling access to require('child_process') from the injected handler, leading to remote code execution (RCE).
- CVE-2026-44670Critical
SiYuan is an open-source personal knowledge management system. In versions prior to 3.7.0, attribute view names are stored without HTML escape, leading to potential HTML injection and Node.js code execution in the renderer.
- CVE-2026-44588Critical
SiYuan prior to version 3.7.0 has an XSS vulnerability in the tooltip handler, where a document title containing URL-encoded characters (e.g., %3Cimg src=x onerror=...%3E) is decoded and inserted into innerHTML without escaping. Because the renderer runs with nodeIntegration: true and disabled security features, this leads to arbitrary code execution.
- CVE-2026-39846Critical
SiYuan prior to 3.6.4 contains a stored XSS vulnerability that allows remote code execution in the Electron desktop client. An attacker can import a crafted note into a synced workspace, and when the victim opens it, attacker-controlled JavaScript executes with access to Node.js APIs.
- CVE-2026-34449Critical
SiYuan, a personal knowledge management system, prior to version 3.6.2 allows a malicious website to achieve Remote Code Execution (RCE) on any desktop running SiYuan. This is due to an overly permissive CORS policy (Access-Control-Allow-Origin: * + Access-Control-Allow-Private-Network: true) that enables injecting JavaScript via the API. The injected code executes in Electron's Node.js context with full OS access the next time the user opens SiYuan's UI. No user interaction is required beyond visiting the malicious website while SiYuan is running.
- CVE-2026-34448Critical
SiYuan prior to version 3.6.2 allows stored XSS via a malicious URL in the Asset View field. In the Electron client, the XSS escalates to arbitrary OS command execution due to enabled nodeIntegration and disabled contextIsolation.
- CVE-2026-23852Critical
SiYuan is a personal knowledge management system. Versions prior to 3.5.4 have a stored Cross-Site Scripting (XSS) vulnerability that allows an attacker to inject arbitrary HTML attributes into the `icon` attribute of a block via the `/api/attr/setBlockAttrs` API. The payload is later rendered in the dynamic icon feature in an unsanitized context, leading to stored XSS and, in the desktop environment, potential remote code execution (RCE). This issue bypasses the previous fix for issue `#15970` (XSS → RCE via dynamic icons). Version 3.5.4 contains an updated fix.
- CVE-2026-145602High
SiYuan from 3.8.10 before 3.8.12 contains a DOM-based cross-site scripting vulnerability in AgentSessionPanel.ts, where model-generated session titles are inserted into an aria-label without escaping double quotes. Attackers can use prompt injection in a document to make the model return a title carrying an event handler, executing script and, on desktop, OS-level code via Node.js when the user hovers the session row.
- CVE-2026-145601Medium
SiYuan before 3.8.12 contains a missing authorization vulnerability that allows authenticated Reader users to read indexed asset content from publish-disabled documents through nested Attribute View rollups. Attackers can send the asset path to /api/search/getAssetContentByPath because recursive Relation and Rollup traversal skips publish filtering, disclosing private attachment content.
- CVE-2026-145600High
SiYuan before 3.8.12 contains an OAuth mix-up vulnerability in the MCP OAuth callback route that accepts state-valid authorization responses lacking the iss parameter despite metadata advertising issuer-response support. Malicious MCP operators can cross-wire authorization-server metadata so the honest issuer's code and PKCE verifier are sent to an attacker-controlled token endpoint, potentially obtaining tokens for user-approved scopes.
- CVE-2026-145599Medium
SiYuan before 3.8.12 contains a missing authorization vulnerability that allows authenticated publish Readers to read password-gated document alias and memo values without the document password. Attackers can send POST requests to /api/filetree/listDocsByPath without the publish-auth cookie to retrieve private IAL metadata from visible password-protected documents.
- CVE-2026-145598Medium
SiYuan before 3.8.12 fully decompresses Zstandard-encoded WebDAV sync index data without bounding decoded output before validating the index, allowing unbounded memory allocation. On-path attackers modifying plaintext HTTP WebDAV responses during automatic sync can supply a small Zstandard frame expanding to a 12 GiB index, OOM-killing the SiYuan kernel process.
- CVE-2026-145597Medium
SiYuan before 3.8.12 contains an information disclosure vulnerability that allows authenticated publish Readers to read editor-only block Memo text via the /api/search/listInvalidBlockRefs endpoint. Attackers can request invalid-reference search results, where searchBlockContracts copies unredacted Memo fields into responses, exposing private editor notes on publish-visible blocks.
- CVE-2026-145596Medium
SiYuan before 3.8.12 contains an information disclosure vulnerability in /api/system/getConf, where non-administrator configuration masking does not clear the workspace-wide conf.stat counters. Authenticated publish Readers can send an empty POST request to obtain tree, block, data-size, and asset-size totals, revealing the existence and aggregate footprint of unpublished or password-gated content.
- CVE-2026-145595Medium
SiYuan before 3.8.12 contains an uncontrolled resource consumption vulnerability where completed OIDC callback records occupy the shared global login-start table. Unauthenticated attackers can repeat the public start and provider-error callback sequence to fill the 512-entry table and block legitimate users from starting OIDC sign-in.
- CVE-2026-145567Medium
SiYuan before version 3.9.0-alpha.14 contains a denial of service vulnerability that allows attackers to exhaust disk and memory by supplying oversized or highly compressed import packages. Attackers can trick an administrator into importing a crafted zip through importConf or sync-provider import handlers, which unzip without size limits and crash the kernel.
- CVE-2026-145566Medium
SiYuan before 3.9.0-alpha.14 contains a denial of service vulnerability that allows attackers to exhaust disk space by supplying a zip bomb extracted through /api/archive/unzip or the MCP unzip tool. Attackers can place a small, highly compressed ZIP in the victim's workspace that, when extracted by the victim or an AI agent, writes gigabytes of data and makes the workspace unavailable.
- CVE-2026-145565Medium
SiYuan before 3.9.0-alpha.14 contains a denial of service vulnerability in processBase64Img() that decodes base64 images without enforcing pixel limits. Attackers can supply small PNGs declaring huge dimensions via clipped, pasted, or imported HTML to exhaust kernel memory and crash the SiYuan kernel.
- CVE-2026-145556High
SiYuan before 3.9.0-alpha.14 contains a stored cross-site scripting vulnerability in the Inbox dock that allows attackers to inject script through unsanitized shorthandTitle, shorthandURL and shorthandDesc fields of clipped entries. Attackers controlling a web page title or URL can execute JavaScript in the SiYuan renderer when victims clip and open the entry, then use the kernel API to read and modify notes and files.
- CVE-2026-145093Medium
SiYuan before 3.8.11 contains an information disclosure vulnerability because getRecentUpdatedBlocks selects the sixteen newest paragraph blocks workspace-wide before applying publish-access filtering. Authenticated publish Readers can repeatedly poll POST /api/block/getRecentUpdatedBlocks and observe reduced row counts to infer recent edits in publish-disabled documents.
- CVE-2026-145089Medium
SiYuan before 3.8.11 contains an information disclosure vulnerability that allows authenticated Reader users to obtain editor-only inline memo content by requesting publish-visible heading subtrees. Attackers can send POST requests to /api/block/getHeadingChildrenDOM, which renders child blocks without stripping TextMarkInlineMemoContent, exposing private notes via data-inline-memo-content attributes.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

