ZeroHour

CVE-2026-87811

moderate

Authenticated stored XSS in SiYuan via notebook template paths

CVSS 4.0
8.4 high
EPSS
Published
()
Modified
AI analysis

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.

Affected
SiYuan (note-taking / knowledge management application)all versions before 3.8.2
Estimated exposure
moderate≈ tens of thousands of users (widely adopted open-source self-hosted note-taking app; no public install or scan counts available) — SiYuan is a popular open-source knowledge-management application typically deployed as a local or self-hosted instance, and while the source data contains no install counts or internet-exposure scan figures, community adoption of the…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

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 news

No ingested article mentions this CVE yet.