Reflected XSS Vulnerability in SiYuan Knowledge Management System
CVE-2026-31807
What is CVE-2026-31807?
SiYuan is a personal knowledge management system that, prior to version 3.5.10, had a security flaw in its SVG sanitization process, implemented by the SanitizeSVG utility. This tool effectively blocks certain dangerous elements, such as and , and attempts to sanitize JavaScript event handlers. However, it fails to adequately defend against SVG animation elements like and , which can manipulate attributes dynamically at runtime. An attacker can exploit this oversight to inject malicious JavaScript through the unauthenticated /api/icon/getDynamicIcon endpoint (type=8), leading to a reflected XSS vulnerability. This issue serves as a bypass of security measures intended to resolve CVE-2026-29183, which was addressed in version 3.5.9.
Affected Version(s)
siyuan < 3.5.10
