Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privileged SiYuan account
-
DeliverySet block name/alias/memo to script payload
-
ExploitVictim opens document referencing block
-
ExecutionBacklink/breadcrumb/hint renders unescaped markup
-
PersistScript executes in victim session
-
ImpactHijack account or exfiltrate data
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 | Exploitation requires the attacker to have a low-privileged authenticated account on the SiYuan instance (PR:L) with the ability to create or edit a block and set its name, alias, or memo field. Execution is not automatic: a second, different user must view or open a document that references or displays the poisoned block through the hint, backlink, or breadcrumb rendering functions (UI:P/UI:R), so a single-user local install is effectively not exploitable. Limiting factors: the need for a second victim user, the requirement that the victim navigate to a referencing view, the authenticated-account prerequisite, and affected versions being strictly before v3.8.1. |
| Impact | The vendor CVSS 4.0 score of 9.3 (AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:L, with subsequent-system SC:H/SI:H) is high, but the raw number should be read against real conditions: exploitation requires an authenticated account (PR:L) and victim interaction (UI:P) - namely a second user opening or viewing a document that surfaces the malicious block. This is therefore most impactful in multi-user or shared/collaborative SiYuan deployments; a purely single-user local install has little exposure since the attacker and victim would be the same person. No EPSS score, KEV entry, or POC was provided, so predicted exploitation likelihood cannot be quantified from the input and there is no evidence of active exploitation. The high subsequent-system impact scoring reflects that script execution in the victim's authenticated context can lead to account/session compromise. Overall this is a genuine, patch-now issue for any shared SiYuan instance, but the account-plus-interaction prerequisites make it lower urgency for isolated single-user setups than the 9.3 alone would imply. |
| Exploit ScenarioDerived | An attacker with a low-privileged account on a shared SiYuan instance creates a block and sets its name (or alias/memo) to a string containing script tags. When a colleague later opens or edits a document that references that block - triggering the backlink, breadcrumb, or hint rendering - the script executes in the colleague's authenticated session, letting the attacker steal session data or perform actions as that user. No public POC was provided, but the technique is straightforward given the described lack of output escaping. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAI
Stored cross-site scripting in SiYuan before v3.8.1 lets an authenticated user plant HTML/script payloads in a block's name, alias, or memo field, which then execute in another user's session when that user views any document that references or displays the poisoned block via hint, backlink, or breadcrumb rendering. Because the malicious markup runs in the victim's authenticated context, an attacker can hijack sessions and act as the victim. No public exploit identified at time of analysis, and the flaw is not listed in CISA KEV.
RemediationAI
Vendor-released patch: upgrade to SiYuan v3.8.1 or later, which properly escapes the block name, alias, and memo fields in the hint, backlink, and breadcrumb rendering paths; this is the primary and recommended fix per advisory GHSA-hf87-qh3j-3p88 (https://github.com/siyuan-note/siyuan/security/advisories/GHSA-hf87-qh3j-3p88). Until upgrading, operators of shared or multi-user instances should restrict block-editing to trusted users and avoid opening or referencing documents/blocks authored by untrusted accounts, since the payload only executes when a victim views a referencing view; on self-hosted deployments a strict Content-Security-Policy that disallows inline script execution can blunt injected payloads, at the trade-off of potentially breaking legitimate inline functionality in the app. These are stopgaps only - patching to v3.8.1 is the durable remediation.
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
SiYuan is a self-hostable, block-based personal knowledge-management and note-taking application. The root cause is CWE-79 (improper neutralization of input during web page generation): the block name, alias, and memo fields are stored verbatim and then reflected into the DOM by the hint (autocomplete), backlink, and breadcrumb rendering functions without HTML-escaping. Because these three rendering paths surface a block's metadata wherever it is referenced, a payload stored once propagates to every document and view that links to or displays that block, making this a persistent (stored) rather than reflected XSS. The affected package is identified by CPE cpe:2.3:a:siyuan-note:siyuan for all versions prior to 3.8.1.
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:L/SC:H/SI:H/SA:L
Authenticated attacker stores payload (PR:L) that runs only when another user views it (UI:R), executing in the victim's context across a trust boundary (S:C) with high confidentiality/integrity impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SiYuan before v3.8.1 fails to properly escape block name, alias, and memo fields in hint, backlink, and breadcrumb rendering functions. Attackers can set a block's name to contain HTML/script tags that execute when another user views documents referencing or displaying that block.
Technical POC Analysis
CWE-79, with the regression mechanism also fitting CWE-116.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
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-68240
GHSA-5x6r-p3h7-38vj
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB