Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-33066

CVE-2026-33066: B3log Siyuan RCE Vulnerability

CVE-2026-33066 is a remote code execution flaw in B3log Siyuan that allows attackers to execute arbitrary code through malicious package README files. This post covers the technical details, affected versions, and mitigation.

Published: March 27, 2026

CVE-2026-33066 Overview

CVE-2026-33066 is a Cross-Site Scripting (XSS) vulnerability in SiYuan, a personal knowledge management system developed by B3log. The vulnerability exists in the backend renderREADME function which uses lute.New() without calling SetSanitize(true), allowing raw HTML embedded in Markdown to pass through unmodified. When the frontend assigns the rendered HTML to innerHTML without additional sanitization, malicious JavaScript embedded in package README files executes in the user's browser context.

This vulnerability is particularly dangerous because SiYuan's Electron configuration enables nodeIntegration: true with contextIsolation: false, allowing the XSS to escalate directly to full Remote Code Execution (RCE) on the victim's system.

Critical Impact

A malicious package author can embed arbitrary JavaScript in their README that executes when a user views package details, escalating to full system compromise via Electron's Node.js integration.

Affected Products

  • B3log SiYuan versions 3.6.0 and below

Discovery Timeline

  • 2026-03-20 - CVE-2026-33066 published to NVD
  • 2026-03-23 - Last updated in NVD database

Technical Details for CVE-2026-33066

Vulnerability Analysis

This vulnerability represents a classic failure in sanitization controls within a Markdown rendering pipeline. The renderPackageREADME function in SiYuan's kernel processes Markdown content from package README files but neglects to enable HTML sanitization in the Lute Markdown engine. This allows malicious actors to embed raw HTML and JavaScript directly within Markdown documents.

The attack surface is significantly expanded by the application's Electron configuration. With nodeIntegration: true and contextIsolation: false, any JavaScript code executing in the renderer process has direct access to Node.js APIs. This architectural decision transforms what would typically be a client-side XSS issue into a severe Remote Code Execution vulnerability, enabling attackers to execute arbitrary system commands, access the filesystem, and fully compromise the victim's machine.

Root Cause

The root cause is the missing SetSanitize(true) call on the Lute Markdown engine instance in the renderPackageREADME function. The Lute library provides built-in HTML sanitization capabilities, but these must be explicitly enabled. Without this sanitization, any HTML tags including <script> elements pass through the Markdown rendering process unmodified and are subsequently rendered in the Electron application's DOM via innerHTML assignment.

Attack Vector

The attack vector is network-based and requires low privileges. An attacker can create a malicious package with a crafted README file containing embedded JavaScript. When a victim browses the package marketplace and clicks to view the malicious package's details, the JavaScript payload executes automatically. Due to Electron's insecure configuration, this JavaScript can leverage Node.js APIs to achieve arbitrary code execution on the victim's system.

go
// Security patch showing the fix - Source: GitHub Commit
 func renderPackageREADME(linkBase string, mdData []byte) (ret string) {
 	mdData = bytes.TrimPrefix(mdData, []byte("\\xef\\xbb\\xbf")) // 移除文件开头的 BOM
 	luteEngine := lute.New()
+	luteEngine.SetSanitize(true)
 	luteEngine.SetSoftBreak2HardBreak(false)
 	luteEngine.SetCodeSyntaxHighlight(false)
 	luteEngine.SetLinkBase(linkBase)

Source: GitHub Commit b382f50e

Detection Methods for CVE-2026-33066

Indicators of Compromise

  • Unexpected outbound network connections originating from the SiYuan Electron process
  • Suspicious child process spawning from the SiYuan application
  • README files containing <script> tags, onclick handlers, or other event-based XSS payloads
  • Evidence of Node.js API usage in browser-side code such as require('child_process') or fs module calls

Detection Strategies

  • Monitor for HTML content containing script tags or JavaScript event handlers in package README files
  • Implement Content Security Policy (CSP) violations logging to detect inline script execution attempts
  • Analyze application logs for unusual package download or viewing patterns that may indicate exploitation attempts

Monitoring Recommendations

  • Enable process monitoring to detect unusual child processes spawned by the SiYuan Electron application
  • Configure network monitoring to identify suspicious outbound connections from the application
  • Implement file integrity monitoring on the SiYuan installation directory and user data folders

How to Mitigate CVE-2026-33066

Immediate Actions Required

  • Upgrade SiYuan to version 3.6.1 or later immediately
  • Avoid viewing package details from untrusted or unknown sources until patched
  • Review recently installed packages for suspicious README content
  • Consider temporarily disabling package marketplace access if upgrade is not immediately possible

Patch Information

The vulnerability was patched in SiYuan version 3.6.1. The fix adds SetSanitize(true) to the Lute Markdown engine configuration in the renderPackageREADME function, ensuring that raw HTML is properly sanitized before rendering. Users should upgrade to version 3.6.1 or later to remediate this vulnerability. The security patch is documented in the GitHub Security Advisory GHSA-4663-4mpg-879v.

Workarounds

  • Disable or restrict access to the package marketplace functionality until the upgrade can be applied
  • Implement network-level controls to block access to untrusted package repositories
  • Use application sandboxing or containerization to limit potential impact of exploitation
bash
# Verify SiYuan version to ensure patched version is installed
# Check application version in SiYuan settings or about dialog
# Ensure version is 3.6.1 or higher

# If using container deployment, update to latest image
docker pull b3log/siyuan:latest

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechB3log Siyuan

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.22%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Vendor Resources
  • GitHub Commit Changes

  • GitHub Security Advisory GHSA-4663-4mpg-879v
  • Related CVEs
  • CVE-2026-40922: B3log Siyuan RCE Vulnerability

  • CVE-2026-33067: B3log Siyuan RCE Vulnerability

  • CVE-2024-55660: B3log Siyuan RCE Vulnerability

  • CVE-2026-33476: B3log Siyuan Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English