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-73043: SiYuan RCE via Template Calculation Operator
CVE-2026-73043: SiYuan RCE via Template Calculation Operator

Critical Security Alert

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

SECURITYCRITICALCVE-2026-73043

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.

Dylan H.

Security Team

August 16, 2026
2 min read

Affected Products

  • SiYuan < v3.7.4

Overview

A critical remote code execution (RCE) vulnerability has been disclosed in SiYuan, the popular open-source personal knowledge management and note-taking application. Tracked as CVE-2026-73043 with a CVSS score of 9.0, the flaw exists in SiYuan's Template calculation operator, which renders user-authored Go templates but stores their output verbatim without any sanitization.

Attackers who can craft or share malicious notes can inject arbitrary HTML and JavaScript into template calculation blocks. This script then executes in SiYuan's Electron-based renderer — a context that carries full Node.js API access, enabling arbitrary code execution on the victim's machine.

Technical Details

SiYuan's Template block feature allows users to embed Go text/template expressions directly inside note content. The vulnerability arises from a design-level oversight: rendered template output is written to the document DOM without HTML encoding or Content Security Policy (CSP) restrictions effective enough to block inline script execution.

Attack vector:

  1. An attacker creates a SiYuan note containing a malicious Template block, e.g., embedding <script> payloads or abusing Go template logic to emit event-handler attributes.
  2. The victim opens or syncs the note. SiYuan's backend renders the Go template and inserts raw HTML output into the document.
  3. Script executes in the Electron context with full require('node:...') access — enabling file system reads/writes, process spawning, and network exfiltration.

This is particularly dangerous for teams using SiYuan's workspace sync or shared workspace features, as a single malicious contributor can silently target all syncing users.

Affected Versions

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

Mitigation

  • Upgrade immediately to SiYuan v3.7.4 or later, which sanitizes template output before DOM insertion.
  • Until patched, avoid opening notes from untrusted sources, syncing with untrusted workspaces, or importing exported SiYuan packages from unknown parties.
  • Enterprise users should consider restricting SiYuan network access and auditing existing workspaces for suspicious template blocks.

References

  • NVD: CVE-2026-73043
  • SiYuan GitHub
#CVE#RCE#SiYuan#Template Injection#Critical

Related Articles

CVE-2026-9558: Critical SSTI in Mautic Enables Authenticated RCE

A Server-Side Template Injection flaw in Mautic's Twig-based theme engine allows authenticated users with theme upload permissions to execute arbitrary...

3 min read

CVE-2026-41258: OpenMRS Velocity Template Injection Enables

A critical unsandboxed Apache Velocity template injection vulnerability in OpenMRS Core allows authenticated attackers to execute arbitrary code on the...

3 min read

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
Back to all Security Alerts