Sceawere

Vulnerability Detail

CVE-2026-84803UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV

SiYuan Asset Stored XSS

Vulnerability Metadata

Severity
Critical
Score / CVSS
9
Creation Date
18h ago
Vendor
siyuan-note
Product
siyuan
Attack Type
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Vector String
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Attack Complexity
LOW

Narrative and Response

Description

SiYuan before v3.8.2 contains a stored cross-site scripting vulnerability in asset serving due to an incomplete extension blocklist that misses script-capable file types. Attackers can upload files with extensions like .xht, .ehtml, .xsl, .xbl, or .rdf that resolve to executable media types and execute JavaScript to steal API tokens and compromise workspaces.

Executive Summary

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Executive Summary Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Technical Details

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Detailed Technical Analysis Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Mitigations

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Remediation & Mitigations Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

References

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Intelligence References Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Additional Metadata

{
  "score": "9.0",
  "pubDate": "2026-09-02T12:17:17.183Z",
  "pubdate": "2026-09-02T12:17:17.183Z",
  "executiveSummary": "SiYuan versions prior to 3.8.2 are susceptible to a stored Cross-Site Scripting (XSS) vulnerability within the application's asset serving mechanism. This security flaw stems from an insufficiently restrictive blocklist for file extensions, which fails to account for file types that the browser interprets as executable content.\nBy uploading malicious files with extensions such as .xht, .ehtml, .xsl, .xbl, or .rdf, an attacker can bypass existing security controls and force the application to serve files with media types that support JavaScript execution. This allows for the injection of arbitrary scripts that execute within the context of the user's session.\nThe impact of this vulnerability is severe, as it facilitates the exfiltration of sensitive information, including API tokens, and allows for unauthorized access to or compromise of the user's workspace. Successful exploitation requires the ability to upload assets to the SiYuan environment, but does not necessitate advanced privileges beyond standard file upload capabilities. Users are at risk of complete account takeover if their session tokens are compromised via the injected malicious scripts.",
  "technicalDetails": "The root cause of this vulnerability is an incomplete server-side validation mechanism tasked with filtering file uploads. While SiYuan implements a blocklist to prevent the upload of potentially dangerous file extensions, the list is insufficient as it fails to include several extensions that are natively interpreted by web browsers as XML-based documents or other formats capable of triggering XSS.\nThe vulnerability resides in the component responsible for serving uploaded assets. When a file is accessed via the application's internal URL scheme, the server serves the content with a MIME type that the browser interprets based on the file's extension. Because the blocklist misses extensions like .xht (XHTML), .ehtml (Embedded HTML), .xsl (Extensible Stylesheet Language), .xbl (XML Binding Language), and .rdf (Resource Description Framework), the server may assign these files media types that allow the browser to parse and execute embedded scripts.\nThe attack flow follows a structured process: First, the attacker crafts a malicious file containing a payload designed to access browser cookies, localStorage, or API tokens stored by SiYuan. Second, the attacker uploads this file as an asset to the workspace, potentially disguising it as a document or data file. Third, the attacker triggers access to the uploaded file URL. When the victim accesses this URL, the browser retrieves the file from the SiYuan asset server. Because the server does not enforce a secure 'Content-Type' or 'Content-Disposition: attachment' header policy, the browser renders the file and executes the malicious script embedded within the XML/HTML structure.\nThis execution occurs within the security origin of the SiYuan application, granting the injected script full access to the Document Object Model (DOM), local storage, and cookies associated with the workspace. The payload is typically designed to exfiltrate sensitive data, such as API credentials, to an attacker-controlled remote server. Given that SiYuan often manages sensitive user notes and potentially authenticated connections, the post-exploitation impact includes the total compromise of the user's workspace, unauthorized data access, and potential persistence mechanisms within the local application state."
}
CVE-2026-84803: SiYuan Asset Stored XSS (CRITICAL Severity, CVSS: 9.0) - Sceawere