CVE-2026-87811
moderateAuthenticated stored XSS in SiYuan via notebook template paths
SiYuan versions before 3.8.2 fail to properly encode persisted notebook template paths when they are inserted into HTML input value attributes, resulting in cross-site scripting (CWE-79). An authenticated attacker with low privileges can save a notebook with a crafted template path containing attribute-breaking characters; when a victim later opens that notebook's configuration, the injected content breaks out of the attribute and executes attacker-controlled JavaScript in the victim's browser session. From there, the attacker can issue same-origin API requests as the victim and manipulate application state. All SiYuan deployments running a version prior to 3.8.2 are affected, with the greatest risk in multi-user or web-accessible instances where another account can modify notebook settings. There is currently no public proof of concept, the issue is not in CISA's KEV catalog, and no in-the-wild exploitation has been reported.
What to do: Upgrade SiYuan to v3.8.2 or later, which applies proper attribute encoding for notebook template paths. Until patched, restrict write access to notebook settings to trusted accounts, limit web UI access to trusted networks, and review existing notebooks for template paths containing quotes or HTML metacharacters that could have been used to plant persistent payloads.
| SiYuan (note-taking / knowledge management application) | all versions before 3.8.2 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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.
- Weakness
- CWE-79
- Vector
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
In the news0 stories
No ingested article mentions this CVE yet.