Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticated attacker stores crafted image-URL asset value
-
DeliveryNote delivered via sync, import or shared workspace
-
ExploitVictim opens bound note or attribute panel
-
Executiononerror fires in Electron renderer
-
Impactchild_process executes OS commands as desktop user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a stock SiYuan installation containing an Attribute View (database) with an Assets field and the database attribute panel enabled (databaseAttrShow, on by default - no setting change needed). The attacker must be able to store an asset value in the victim's workspace: a note author using the editor's 'Insert image link' field, or an authenticated client calling POST /api/av/setAttributeViewBlockAttr; the crafted note can reach the victim via sync, import, or a shared workspace. Exploitation is LIMITED by three factors: the attacker needs write access to store the asset value (PR:L, not fully unauthenticated), the victim must actively open the bound note or the row's attribute panel (UI:P), and full OS command execution occurs only in the Electron desktop build (nodeIntegration:true, contextIsolation:false); the self-hosted web/Docker deployment yields script execution in the kernel origin rather than direct OS commands. The sibling database table-cell renderer is not affected because it percent-encodes the URL via getCompressURL(encodeURI(...)) - only the attribute-panel path is vulnerable. |
| Impact | This is a genuine high-priority issue, not a CVSS-inflation artifact. Multiple signals align: the input CVSS 4.0 vector (9.4) shows network vector, low complexity, low privileges and passive user interaction with full confidentiality/integrity/availability impact on both the vulnerable and subsequent systems, and the vuln.today Decision label is act_now with a vendor patch available. PR:L correctly reflects that the attacker must be an authenticated note author or kernel-API client who can write an Attribute View asset value, and UI:P reflects that a victim must open the bound note or row attribute panel. The high-impact SC/SI/SA scores are justified for the desktop build, where the advisory and its PoC show the injected onerror reaching require('child_process') because the Electron renderer runs with nodeIntegration:true and contextIsolation:false, turning stored XSS into OS command execution. No EPSS score and no CISA KEV entry are present in the input, so there is no evidence of in-the-wild exploitation yet; the risk rests on the confirmed patch-bypass, the detailed PoC, and the act_now label rather than on observed attacks. The web/Docker deployment is lower impact (script execution in the kernel origin, not direct OS commands). Key caveat: KEV and EPSS data are absent from the input and were not independently retrieved, so widespread active exploitation is neither confirmed nor ruled out. |
| Exploit ScenarioDerived | An attacker who can write to a victim's workspace (a shared/synced note author, or an authenticated client calling POST /api/av/setAttributeViewBlockAttr) stores an image asset whose URL contains a double quote plus an onerror handler, e.g. http://127.0.0.1/report.png?v=1" onerror="require('child_process').execSync('id'). When the victim opens the bound note or the row's attribute panel in the SiYuan desktop app, genAVValueHTML() emits the unescaped src, the image fails to load, and the onerror runs OS commands as the desktop user. A detailed public PoC with payloads, screenshots and Docker/desktop reproduction is published in the GHSA advisory and linked gist; low attack complexity makes reproduction straightforward. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
Stored cross-site scripting in SiYuan through 3.8.9 lets anyone able to write an Attribute View asset value into a workspace inject an onerror handler through the image src that genAVValueHTML() interpolates unescaped into the attribute panel's innerHTML. In the Electron desktop build (nodeIntegration enabled, contextIsolation disabled) that handler runs operating-system commands through require('child_process') when the victim opens a bound note or the row's attribute panel, while on the official self-hosted Docker/web build the same stored value executes script in the kernel origin with the victim's session. This is the residual sink left behind by the v3.7.0 fixes for GHSA-56mp-4f3v-fgj2 (CVE-2026-50551) and GHSA-5xfx-xj4h-5p7r (CVE-2026-54158); exploitation needs workspace write access (PR:L) and victim interaction, and the vendor advisory publishes a public proof-of-concept demonstrated on v3.8.9 that produced command output.
RemediationAI
Upgrade to SiYuan v3.8.10, the first release containing the fix commit https://github.com/siyuan-note/siyuan/commit/3f4a2ca741411ebf0908ef1b7b86500a4ef4c20c, which escapes the Attribute View asset image src via escapeAttr(getCompressURL(item.content)) and adds regression tests for direct and rollup asset rendering; the advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-3qqh-fmrp-8vfq should be tracked for the release note. The update matters most on the desktop build, where the renderer's nodeIntegration: true and contextIsolation: false turn the injected onerror into command execution as the desktop user, whereas the Docker/web deployment is limited to script in the kernel origin with the victim's session. Until the upgrade is applied, exposure is bounded by the attacker position the advisory describes: someone who can write an Attribute View asset value into the workspace, whether as a note author through the editor's insert-image-link field or via POST /api/av/setAttributeViewBlockAttr, with the value arriving by sync, import or a shared workspace. Restricting who can write asset values and treating synced or imported notes from untrusted sources as untrusted therefore limits reach, and the vulnerable sink is only rendered on the attribute panel path (the table-cell renderer percent-encodes the URL), so the display of that panel governed by databaseAttrShow is the surface to consider; neither of these removes the stored value already in a workspace.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-79: the flaw is a stored/DOM XSS in SiYuan's Attribute View renderer, not a server-side injection. genAVValueHTML() in app/src/protyle/render/av/attributeValue.ts builds the mAsset branch as <img loading="lazy" ... aria-label="${escapeAriaLabel(item.content)}" src="${getCompressURL(item.content)}">; the result is assigned to innerHTML by the attribute panel (blockAttr.ts), so an asset content value containing a double quote closes the src attribute and appends an onerror handler. Two helpers let the payload through intact: isBrowserRenderableImagePath() treats any string that is not a HEIF/TIFF path as image-renderable, and getCompressURL() returns its input unchanged when it is not a recognised asset URL. The v3.7.0 fixes escaped the aria-label and the neighbouring text, url, phone and email branches and added encodeURI to the sibling table-cell renderer (cell.ts) and asset.ts, but left this single src raw; the same branch is reachable via a rollup of an Assets field. It is precisely because the database table renderer still percent-encodes the URL that the table cell stays a harmless broken image while only the attribute-panel path executes. Impact escalates from script execution to OS command execution only in the desktop app, where the renderer runs with nodeIntegration: true and contextIsolation: false and can call require('child_process'); the web/Docker deployment confines it to script in the kernel origin. The v3.8.10 patch wraps the value in escapeAttr(getCompressURL(item.content)) and adds regression tests covering direct asset cells, rollups, thumbnail compression and encoded URLs.
Know when Siyuan gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Attacker needs low-privileged write access to store the asset value (PR:L) and the victim must open the note (UI:R); XSS escaping the renderer to OS command execution via Electron crosses a trust boundary (S:C) with full C/I/A impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Articles & Coverage 1
Technical POC Analysis
Stored XSS, CWE-79.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A critical stored cross-site scripting flaw in SiYuan note-taking software (CVE-2026-130679) allows authenticated users with workspace write access to inject malicious code that executes when other users view notes or attribute panels. On Electron desktop builds, this can lead to operating system command execution, while on self-hosted web deployments it compromises user sessions. Security leadership must address this immediately as it enables potential remote code execution and data compromise affecting all workspace users, with a public proof-of-concept already available.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role
Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a
SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements
Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,
SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr
A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c
SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex
Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package
Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro
EUVD-2026-128752
GHSA-r755-ggqh-772w
NVD
CVE.org
EPSS
Exploit-DB