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.

2381+ Articles
158+ 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-73041: SiYuan XSS via PDF Annotation Fields Grants Full Node.js Access
CVE-2026-73041: SiYuan XSS via PDF Annotation Fields Grants Full Node.js Access

Critical Security Alert

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

SECURITYCRITICALCVE-2026-73041

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.

Dylan H.

Security Team

August 16, 2026
3 min read

Affected Products

  • SiYuan < v3.7.4

Overview

A critical cross-site scripting (XSS) vulnerability in SiYuan's PDF annotation renderer has been assigned CVE-2026-73041 with a CVSS score of 9.0. The flaw allows attackers to inject malicious markup into PDF annotation fields that execute as scripts in SiYuan's PDF renderer — with full Node.js API access — when a victim opens an annotated PDF document within the application.

This vulnerability is companion to CVE-2026-73043 (template injection RCE) and was disclosed simultaneously, suggesting a broader code audit finding related to output encoding across SiYuan's Electron-based rendering pipeline.

Technical Details

SiYuan allows users to annotate PDF documents embedded within their note workspaces. Annotations are written to disk via the setFileAnnotation endpoint. The vulnerability stems from SiYuan failing to validate or escape annotation field content before writing it to disk and subsequently rendering it in the PDF viewer.

Attack flow:

  1. An attacker writes a malicious PDF annotation containing script payloads — via the setFileAnnotation API endpoint or by directly manipulating annotation data shared through workspace sync.
  2. The annotation is stored on disk without sanitization.
  3. When a victim opens the annotated PDF in SiYuan, the embedded annotation is rendered in SiYuan's PDF viewer component — an Electron webview context.
  4. The injected script executes with full Node.js access (via Electron's nodeIntegration or equivalent IPC bridge), enabling arbitrary file system operations, process execution, and data exfiltration from the victim's machine.

Why Node.js access matters:
Unlike browser-based XSS, Electron-based XSS in a nodeIntegration-enabled context is effectively equivalent to native code execution. An attacker can read SSH keys, steal secrets from environment variables, exfiltrate the entire SiYuan workspace, or install persistent malware — all triggered by the victim simply opening a shared annotated PDF.

Relationship to CVE-2026-73043

Both CVE-2026-73041 and CVE-2026-73043 affect SiYuan versions before v3.7.4 and share the root cause: rendered content from user-controlled inputs (template blocks, annotation fields) is inserted into Electron renderer contexts without sanitization. The v3.7.4 patch addresses both attack surfaces.

Affected Versions

All SiYuan releases prior to v3.7.4 are vulnerable. The CVE was published August 15, 2026.

Mitigation

  • Upgrade to SiYuan v3.7.4 or later immediately. Both CVE-2026-73041 and CVE-2026-73043 are patched in this release.
  • Until patched, do not open annotated PDFs received from untrusted parties or synced from untrusted workspaces.
  • Organizations using SiYuan for team knowledge management should audit annotation data on shared workspaces for suspicious content.
  • If workspace sync is in use, restrict who can contribute annotations until all participants have upgraded.

References

  • NVD: CVE-2026-73041
  • SiYuan GitHub
  • Related: CVE-2026-73043 – SiYuan RCE via Template Calculation Operator
#CVE#XSS#SiYuan#Node.js#PDF#Critical

Related Articles

CVE-2026-73043: SiYuan RCE via Template Calculation Operator

Critical RCE in SiYuan note-taking app. Unsanitized Go templates allow script injection for all versions before v3.7.4.

2 min read

CVE-2026-11707: IBM WebSphere Application Server Admin Console XSS (CVSS 9.3)

Critical cross-site scripting vulnerability in IBM WebSphere Application Server's administrative console login page enables unauthenticated remote attackers to hijack admin sessions.

4 min read

CVE-2026-2342: ValeApp Stored Cross-Site Scripting (CVSS 9.3)

A critical stored XSS vulnerability in OceanicSoft's ValeApp allows attackers to inject persistent JavaScript payloads that execute in every victim's...

5 min read
Back to all Security Alerts