Technical impact
The vulnerability is a cross‑site scripting flaw in SiYuan's unauthenticated /check‑auth endpoint that assigns the to parameter to window.location.href without validating its scheme. Attackers can craft a link containing a javascript: URI that runs after a user logs in, enabling the attacker to invoke kernel APIs to read or alter workspace content and settings. The flaw therefore permits client‑side script execution with the privileges of the logged‑in user.
Affected Systems
The vulnerability affects all SiYuan releases from version 2.9.0 through 3.8.6 inclusive. The fix is available in version 3.8.7, which removes the unchecked assignment and introduces proper scheme validation. The affected vendor is siyuan‑note, product siyuan.
Risk and Exploitability
With a CVSS score of 7.6, this issue is considered moderate‑to‑high severity. No EPSS score is provided and it is not listed in CISA KEV. The vulnerability is accessed via an unauthenticated web request, and requires a user to click the crafted link, which after authentication grants script execution. Attackers could use this to steal data or modify settings, so the risk remains significant until patched.