CVE-2026-82654
8.9siyuan-note · siyuan
SiYuan versions before 3.8.1 are vulnerable to stored cross-site scripting due to improper sanitization of block name, alias, and memo fields in various rendering functions.
Executive summary
A stored cross-site scripting vulnerability in SiYuan allows authenticated attackers to execute arbitrary scripts in the browsers of other users who view compromised documents.
Vulnerability
The application fails to properly escape input in block names, aliases, and memo fields, which are processed during hint, backlink, and breadcrumb rendering. This flaw allows a low privileged, authenticated user to inject malicious HTML or script tags that trigger execution when other users view the affected content.
Business impact
Successful exploitation allows an attacker to compromise user sessions, steal sensitive session tokens, or perform unauthorized actions on behalf of other users. With a CVSS score of 8.9, this vulnerability represents a high risk to data integrity and confidentiality, potentially leading to unauthorized access to private notes or account takeover within the application environment.
Remediation
Immediate Action: Upgrade to SiYuan version 3.8.1 or later, which includes the necessary security patches to sanitize user inputs.
Proactive Monitoring: Review application access logs for unusual patterns in block name updates or unexpected script-like characters being injected into metadata fields.
Compensating Controls: Implement a strict Content Security Policy (CSP) to restrict the execution of unauthorized scripts and utilize a Web Application Firewall (WAF) to detect and block common cross-site scripting payloads.
Exploitation status
Public Exploit Available: No.
Analyst recommendation
The severity of this vulnerability is significant due to the potential for lateral movement and account compromise through malicious script execution. Organizations using SiYuan must prioritize upgrading to version 3.8.1 to eliminate the risk of stored cross-site scripting. Delaying this update exposes all users to potential session hijacking and unauthorized data access.
More siyuan-note CVEs
Sources
Originally found and disclosed by alham-rizvi, crypto-nidh, per the CVE Program record.
- GitHub Security Advisory (GHSA-hf87-qh3j-3p88) Vendor advisory
- VulnCheck Advisory: SiYuan before v3.8.1 Stored XSS via block name Third-party advisory