CVE-2026-74800

SiYuan before v3.7.4 Stored XSS via assets endpoint

Published Aug 17, 2026 CVSS 4.0 · 9.4 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Siyuan
Siyuan siyuan
Vendors & Products Siyuan
Siyuan siyuan
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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 17, 2026, 4:04 PM
Reserved
Aug 16, 2026, 12:59 PM
Status
Deferred
Published
Aug 17, 2026, 11:16 AM
Modified
Aug 26, 2026, 5:04 PM