ZeroHour

CVE-2026-87814

moderate

Stored XSS in SiYuan search asset preview (before 3.8.2)

CVSS 4.0
8.4 high
EPSS
Published
()
Modified
AI analysis

SiYuan before v3.8.2 contains a stored cross-site scripting flaw (CWE-79) in its search asset preview feature: indexed asset content is inserted into the DOM via innerHTML without HTML escaping, so any markup in a text asset is rendered as HTML. An attacker who can place a crafted text asset in a workspace — for example, in a shared or team workspace where others open the content — triggers the flaw when a victim previews that asset from search results, and the injected JavaScript runs in the SiYuan origin. Because the script executes with the victim's session, the attacker can issue authenticated API requests as the victim and manipulate the workspace, though CVSS indicates no compromise of the system's integrity beyond that scope. Any user or deployment of SiYuan older than 3.8.2 is affected, with risk concentrated in workspaces where content can be authored by someone other than the user doing the preview. Exploitation has not been observed: the issue is not in CISA KEV and no public proof-of-concept is known.

What to do: Upgrade SiYuan to v3.8.2 or later to get the escaped/encoded rendering fix. Until then, do not preview text assets of unknown origin from search results, restrict who can add assets to shared or team workspaces, and treat workspace content from untrusted collaborators as potentially attacker-controlled.

Affected
SiYuanall versions before 3.8.2
Estimated exposure
moderatelikely on the order of tens of thousands of installations (self-hosted open-source note app with a tens-of-thousands-strong user community) — SiYuan is a self-hosted open-source note-taking/knowledge-management tool with a community on the order of tens of thousands of users (tens of thousands of GitHub stars), and no authoritative install counts or internet-exposure scan data…

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 contains a stored cross-site scripting vulnerability in the search asset preview feature that fails to escape indexed asset content before inserting it into the DOM using innerHTML. Attackers who can place crafted text assets in a workspace can execute JavaScript in the SiYuan origin when victims preview the assets, enabling authenticated API requests and workspace 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.