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-40922

CVE-2026-40922: B3log Siyuan RCE Vulnerability

CVE-2026-40922 is a remote code execution flaw in B3log Siyuan versions 3.6.1-3.6.3 that allows malicious package authors to execute arbitrary code via iframe srcdoc attributes. This article covers technical details, impact, and mitigation.

Published: April 23, 2026

CVE-2026-40922 Overview

CVE-2026-40922 is a Cross-Site Scripting (XSS) vulnerability in SiYuan, an open-source personal knowledge management system. This vulnerability represents an incomplete fix bypass for a previously patched XSS issue (CVE-2026-33066). The flaw exists in the bazaar README rendering functionality where the Lute HTML sanitizer fails to block iframe tags and does not effectively filter srcdoc attributes containing raw HTML rather than URLs.

A malicious bazaar package author can craft a README file containing an iframe element with a srcdoc attribute embedding malicious scripts. When unsuspecting users browse the package in SiYuan's marketplace UI, the payload executes within the Electron context with full application privileges, enabling arbitrary code execution on the victim's machine.

Critical Impact

This vulnerability allows remote attackers to execute arbitrary code on users' machines through malicious marketplace packages, compromising the full Electron application context and potentially gaining complete system access.

Affected Products

  • B3log SiYuan versions 3.6.1 through 3.6.3
  • SiYuan Desktop Application (Electron-based)
  • SiYuan Bazaar/Marketplace Component

Discovery Timeline

  • 2026-04-17 - CVE CVE-2026-40922 published to NVD
  • 2026-04-20 - Last updated in NVD database

Technical Details for CVE-2026-40922

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-Site Scripting). The root issue stems from an incomplete security fix that was implemented to address a prior XSS vulnerability (CVE-2026-33066).

The prior fix enabled the Lute HTML sanitizer to prevent XSS attacks in bazaar README rendering. However, the sanitizer implementation has two critical gaps: it does not block iframe tags entirely, and its URL-prefix blocklist approach fails to account for srcdoc attributes. Unlike standard URL-based attributes like src, the srcdoc attribute contains raw HTML content directly embedded within the attribute value, which completely bypasses URL-based filtering mechanisms.

When SiYuan renders README content from bazaar packages in its Electron-based marketplace UI, any embedded scripts within srcdoc attributes execute with the full privileges of the Electron application context. This elevation from web context to application context transforms what might be a typical XSS vulnerability into a full remote code execution scenario.

Root Cause

The vulnerability originates from the Lute HTML sanitizer's incomplete tag blocklist and its reliance on URL-prefix filtering that cannot effectively sanitize the srcdoc attribute. The srcdoc attribute embeds complete HTML documents as raw content, meaning URL-based sanitization approaches are fundamentally ineffective against this attack vector. The sanitizer needed to either block iframe tags entirely or implement content-aware sanitization for srcdoc attributes.

Attack Vector

The attack requires network access and involves user interaction through the marketplace browsing experience. An attacker with the ability to publish packages to the SiYuan bazaar can embed malicious content in their package's README file.

The exploitation flow involves embedding an iframe element within the README markdown content. This iframe uses the srcdoc attribute to contain a complete HTML payload including script tags. When a victim browses the marketplace and views the malicious package, SiYuan's README renderer processes the content through the insufficient sanitizer, allowing the iframe and its embedded content to render. The scripts within srcdoc then execute in the Electron context, providing the attacker with application-level privileges that can be leveraged for arbitrary code execution on the underlying system.

Detection Methods for CVE-2026-40922

Indicators of Compromise

  • Presence of iframe tags with srcdoc attributes in bazaar package README files
  • Unexpected JavaScript execution or process spawning from the SiYuan application
  • Anomalous network connections originating from the SiYuan Electron process
  • Unusual file system modifications made by the SiYuan application process

Detection Strategies

  • Monitor SiYuan application logs for errors related to script execution during marketplace browsing
  • Implement content scanning for downloaded bazaar packages to detect iframe elements with srcdoc attributes
  • Deploy endpoint detection rules to flag unexpected child processes spawned by Electron applications
  • Review installed bazaar packages for suspicious README content patterns

Monitoring Recommendations

  • Configure application-level logging to capture HTML rendering events in the marketplace component
  • Implement real-time monitoring for SiYuan process behavior anomalies
  • Enable network traffic analysis for unexpected outbound connections from SiYuan
  • Establish baseline behavior profiles for the SiYuan application to detect deviations

How to Mitigate CVE-2026-40922

Immediate Actions Required

  • Upgrade SiYuan to version 3.6.4 or later immediately
  • Avoid browsing the SiYuan bazaar/marketplace until the upgrade is complete
  • Review recently installed bazaar packages for suspicious content
  • Consider temporarily disabling bazaar functionality if immediate upgrade is not possible

Patch Information

The vulnerability has been fixed in SiYuan version 3.6.4. The patch is available through the official GitHub release. The fix is implemented in commit b382f50e1880ed996364509de5a10a72d7409428, which properly addresses the iframe and srcdoc attribute sanitization gaps. Users should update through their normal application update process or download the latest release directly from the official repository.

For detailed technical information about the vulnerability and fix, refer to the GitHub Security Advisory.

Workarounds

  • Disable or avoid using the bazaar/marketplace feature until the patch is applied
  • Block network access to bazaar repository servers at the firewall level as a temporary measure
  • Use SiYuan in offline mode to prevent exposure to malicious marketplace content
  • Implement application sandboxing to limit the impact of potential exploitation
bash
# Verify SiYuan version after upgrade
# The version should be 3.6.4 or higher
# Check Help > About in SiYuan or verify the installed version
siyuan --version

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.03%

  • 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
  • Technical References
  • GitHub Security Advisory

  • GitHub Release v3.6.4

  • GitHub Security Advisory
  • Vendor Resources
  • GitHub Commit Details
  • Related CVEs
  • CVE-2026-33067: B3log Siyuan RCE Vulnerability

  • CVE-2026-33066: 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