Description
SiYuan before v3.7.4 fails to set Content-Disposition and X-Content-Type-Options headers when serving arbitrary file assets, allowing stored cross-site scripting attacks. Authenticated attackers can upload HTML files as assets and execute scripts with full kernel API access when the workspace owner opens the asset link.
Published: 2026-08-17
Score: 9.4 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SiYuan versions before 3.7.4 ignore the Content‑Disposition and X‑Content‑Type‑Options headers when delivering user‑supplied assets. Because these safety headers are omitted, an authenticated user can upload an arbitrary HTML file as an asset; when the workspace owner clicks the asset link, the browser executes the HTML, and the embedded script gains unrestricted access to SiYuan’s kernel API. This flaw leads to full code execution within the application, allowing the attacker to modify or delete documents, exfiltrate data, or perform further actions on the host that hosts the workspace.

Affected Systems

All installations of SiYuan using the assets endpoint that are running any version earlier than 3.7.4 are vulnerable. The affected vendor is Siyuan‑Note, and the product is the Siyuan note‑taking application.

Risk and Exploitability

The CVSS score of 9.4 classifies this as a critical flaw; the EPSS score is not available but typical for insider‑or‑authenticated‑user attacks. The vulnerability is not listed in the CISA KEV catalog. An attacker must have a valid authenticated session in the target workspace, and once such a session exists, exploitation is straightforward: upload a malicious asset and wait for the owner to click it.

Generated by OpenCVE AI on August 17, 2026 at 13:12 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SiYuan to version 3.7.4 or newer to receive the Content‑Disposition and X‑Content‑Type‑Options header fix.
  • If an upgrade is not immediately feasible, limit asset upload permissions to trusted users or disable uploading of non‑binary files altogether.
  • Implement a Content Security Policy that disallows inline scripts and enforce strict‑transport‑security headers to reduce the effect of any remaining XSS vectors.

Generated by OpenCVE AI on August 17, 2026 at 13:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 21 Aug 2026 21:45:00 +0000

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

Mon, 17 Aug 2026 11:15:00 +0000

Type Values Removed Values Added
Description SiYuan before v3.7.4 fails to set Content-Disposition and X-Content-Type-Options headers when serving arbitrary file assets, allowing stored cross-site scripting attacks. Authenticated attackers can upload HTML files as assets and execute scripts with full kernel API access when the workspace owner opens the asset link.
Title SiYuan before v3.7.4 Stored XSS via assets endpoint
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': 9.4, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-17T16:04:24.746Z

Reserved: 2026-08-16T12:59:42.223Z

Link: CVE-2026-74800

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-08-17T11:16:40.187

Modified: 2026-08-26T17:04:27.773

Link: CVE-2026-74800

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T21:19:55Z

Weaknesses
  • CWE-79

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