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.
Published: 2026-09-02
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting that can lead to API token theft and workspace compromise
Action: Immediate Patch
AI Analysis

Impact

SiYuan before version 3.8.2 is vulnerable to a stored cross‑site scripting flaw in its asset‑serving subsystem caused by an incomplete blocklist of extension types. The flaw allows an attacker to upload files with extensions such as .xht, .ehtml, .xsl, .xbl, or .rdf that are interpreted by browsers as executable media types and can execute injected JavaScript. This JavaScript runs with the privileges of the victim’s browser session, enabling the theft of API tokens and the compromise of workspaces that rely on those tokens for authentication and data access.

Affected Systems

The vulnerability impacts all installations of SiYuan produced by the vendor siyuan-note, specifically any deployment running a version prior to 3.8.2. No patch has yet been released for older releases, and this issue has been documented for all affected versions, so administrators must verify the current upgrade status of their deployments.

Risk and Exploitability

The flaw carries a CVSS score of 8.6, indicating high severity, and the EPSS score is not available, suggesting unknown exploitation probability but not indicating that exploitation is unlikely. The vulnerability is not listed in the CISA KEV catalog. Attackers would typically send a malicious file upload request to the asset handler; once stored and accessed by a victim, the embedded script executes in the victim’s browser context, enabling token theft. The exploit is straightforward and requires no additional privileges or complex user interaction beyond normal file upload functionality, making it a high‑risk threat for organizations relying on SiYuan for sensitive workspace management.

Generated by OpenCVE AI on September 2, 2026 at 13:12 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SiYuan to version 3.8.2 or newer, which includes a fixed asset blocklist that prevents script‑capable file types from being served as executable media.
  • Restrict file upload permissions to a whitelist of safe extensions and enforce MIME type validation on the server to ensure that only non‑scriptable media can be uploaded.
  • Delete any existing uploaded files with the vulnerable extensions and configure the web server to block or treat those extensions as plain text or to disable execution of script payloads when served.

Generated by OpenCVE AI on September 2, 2026 at 13:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 02 Sep 2026 22:15:00 +0000

Type Values Removed Values Added
First Time appeared Siyuan
Siyuan siyuan
Vendors & Products Siyuan
Siyuan siyuan

Wed, 02 Sep 2026 10:45:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 02 Sep 2026 11:30:00 +0000

Type Values Removed Values Added
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.
Title SiYuan before v3.8.2 Stored XSS via incomplete asset blocklist
First Time appeared B3log
B3log siyuan
Weaknesses CWE-79
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan
References
Metrics cvssV3_1

{'score': 9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-02T13:54:45.797Z

Reserved: 2026-09-02T10:19:32.991Z

Link: CVE-2026-84803

cve-icon Vulnrichment

Updated: 2026-09-02T13:54:25.022Z

cve-icon NVD

Status : Deferred

Published: 2026-09-02T12:17:17.183

Modified: 2026-09-02T14:17:17.443

Link: CVE-2026-84803

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-02T22:00:08Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')