SiYuan versions before v3.8.2 are affected by a stored cross-site scripting (XSS) vulnerability in the asset serving component. The vulnerability stems from an incomplete file extension blocklist that fails to block script-capable file types such as .xht, .ehtml, .xsl, .xbl, and .rdf. Attackers who can upload files to a SiYuan instance can exploit this flaw by uploading files with these extensions, which resolve to executable media types in browsers. Once a victim views or accesses such a file, malicious JavaScript is executed in their browser context. This can result in theft of API tokens and full compromise of user workspaces. The vulnerability is classified as stored XSS, making it persistent and potentially high-impact. A patch was released in SiYuan v3.8.2 which addresses the incomplete blocklist. Users are strongly advised to upgrade to v3.8.2 or later to mitigate this risk.