Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2409+ Articles
159+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2026-74800: SiYuan Stored XSS via Asset Upload Enables Full Kernel API Access
CVE-2026-74800: SiYuan Stored XSS via Asset Upload Enables Full Kernel API Access

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-74800

CVE-2026-74800: SiYuan Stored XSS via Asset Upload Enables Full Kernel API Access

SiYuan before 3.7.4 fails to set Content-Disposition and X-Content-Type-Options headers, enabling stored XSS with full kernel API access.

Dylan H.

Security Team

August 18, 2026
3 min read

Affected Products

  • SiYuan < 3.7.4

Overview

A second critical vulnerability in SiYuan — disclosed alongside CVE-2026-74799 — enables authenticated attackers to execute stored cross-site scripting (XSS) attacks that achieve full access to the SiYuan kernel API. CVE-2026-74800 carries a CVSS score of 9.0 and affects all SiYuan releases prior to v3.7.4.

The vulnerability stems from missing HTTP response headers when serving user-uploaded file assets, allowing malicious HTML files to execute as web pages within the SiYuan origin.

Vulnerability Details

SiYuan's asset serving endpoint does not include two critical security headers when delivering uploaded files:

  • Content-Disposition: attachment — which would force browsers to download files rather than render them
  • X-Content-Type-Options: nosniff — which prevents browsers from MIME-sniffing a response away from the declared content type

Without these headers, an authenticated attacker can upload an HTML file disguised as a benign asset (e.g., an attachment or embedded resource). When the workspace owner subsequently opens or previews the asset URL, the browser renders the HTML file as a live web page within the SiYuan application origin.

Attack Chain

1. Attacker (authenticated) uploads malicious.html as an asset
2. Attacker shares a link or embeds the asset URL in a note
3. Workspace owner's browser renders malicious.html in SiYuan origin
4. XSS payload executes with same-origin access to SiYuan's kernel API
5. Attacker achieves full API access: read/write notes, export data, modify settings

Impact

Because SiYuan's kernel API is accessible via JavaScript within the application origin, a successful XSS payload can:

  • Exfiltrate all notes and attachments in the workspace
  • Modify or delete content across the knowledge base
  • Extract stored credentials including auth codes and API keys
  • Establish persistent access by modifying application settings or injecting code into templates
  • Pivot to CVE-2026-74799 if the pprof endpoints are also exposed

The combination of CVE-2026-74800 (XSS entry point) and CVE-2026-74799 (credential extraction via pprof) creates a particularly dangerous attack chain for compromising SiYuan installations.

Technical Context

Modern browsers rely on Content-Type headers and opt-in security headers to determine how to handle served content. The absence of Content-Disposition: attachment means HTML files are rendered rather than downloaded. The absence of X-Content-Type-Options: nosniff means browsers may interpret ambiguously-typed responses as HTML based on content sniffing heuristics.

In SiYuan's case, uploaded assets are served from the same origin as the application itself, meaning any script executing within a rendered asset HTML file operates with full same-origin privileges — equivalent to JavaScript running within the main SiYuan application.

Fix

The vulnerability is patched in SiYuan v3.7.4, which adds the appropriate Content-Disposition and X-Content-Type-Options headers for all asset serving endpoints.

Remediation

  • Update to SiYuan v3.7.4 or later immediately
  • If updating is not immediately possible:
    • Restrict who can upload assets to the SiYuan workspace
    • Avoid opening or previewing asset files uploaded by untrusted parties
    • Consider placing a reverse proxy in front of SiYuan that adds security headers globally
  • Review uploaded assets for any suspicious HTML files
  • Rotate authentication tokens as a precaution if workspace access was shared

Related Vulnerability

This CVE is closely related to CVE-2026-74799 (CVSS 9.3), which exposes unauthenticated pprof debug endpoints in the same SiYuan versions. Both vulnerabilities are fixed in v3.7.4. Organizations running SiYuan should treat these as a pair and apply the update without delay.

References

  • NVD: CVE-2026-74800
  • NVD: CVE-2026-74799
  • SiYuan GitHub Repository
#CVE#SiYuan#XSS#Stored XSS#Web Security

Related Articles

CVE-2026-73041: SiYuan XSS via PDF Annotation Fields Grants Full Node.js Access

Critical CVSS 9.0 XSS in SiYuan's PDF annotation renderer allows script injection with full Node.js access on affected versions before v3.7.4.

3 min read

SiYuan Stored XSS via Database Menu Metadata (CVE-2026-73042)

SiYuan before v3.7.4 fails to escape database menu metadata, enabling stored XSS in group, view, and field-edit menus. CVSS 9.0 Critical.

3 min read

SiYuan Column Width API Stored XSS (CVE-2026-73044)

SiYuan before v3.7.4 allows stored XSS via unescaped table column width values in style attributes. CVSS 9.0 Critical. Patch to v3.7.4.

3 min read
Back to all Security Alerts