CVE-2026-66394
SiYuan-Note · SiYuan
SiYuan is vulnerable to stored and reflected cross-site scripting (XSS) due to an improper neutralization of input during web page generation via a bypass in the SVG sanitizer.
Executive summary
An XSS vulnerability in SiYuan allows an authenticated attacker to execute arbitrary scripts in the context of other users, potentially leading to unauthorized data access or session compromise.
Vulnerability
This is a cross-site scripting (XSS) vulnerability (CWE-79) caused by a failure to properly sanitize SVG inputs. An authenticated attacker (PR:L) can inject malicious scripts that execute in the browser of a victim who views the affected content.
Business impact
This vulnerability carries a CVSS score of 8.7, indicating a high risk of impact. If exploited, an attacker could steal session cookies, perform unauthorized actions on behalf of the user, or redirect users to malicious sites, which is particularly dangerous in collaborative note-taking environments.
Remediation
Immediate Action: Update SiYuan to version 3.7.3 or later to apply the necessary sanitization patches.
Proactive Monitoring: Monitor application logs for suspicious input patterns or unexpected script execution reports from client browsers.
Compensating Controls: Implement a strict Content Security Policy (CSP) to restrict the execution of inline scripts and unauthorized external resources, which can mitigate the impact of XSS vulnerabilities.
Exploitation status
Public Exploit Available: No (exploit_available: false)
Analyst recommendation
Given the availability of a proof-of-concept and the high severity of XSS in web-based applications, it is critical to apply the update to version 3.7.3 immediately. Failure to patch allows for a high risk of client-side compromise.