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

CVE-2026-29073: B3log Siyuan SQLi Vulnerability

CVE-2026-29073 is a SQL injection vulnerability in B3log Siyuan that allows any authenticated user to execute arbitrary SQL queries. This article covers the technical details, affected versions, impact, and mitigation.

Published: March 13, 2026

CVE-2026-29073 Overview

CVE-2026-29073 is a SQL Injection vulnerability affecting SiYuan, a personal knowledge management system developed by B3log. The vulnerability exists in the /api/query/sql endpoint, which allows authenticated users to execute arbitrary SQL queries directly against the database. The flaw stems from insufficient authorization checks—while the endpoint validates basic authentication, it fails to verify administrative privileges, enabling any logged-in user, including those with read-only permissions, to execute unrestricted SQL queries.

Critical Impact

Any authenticated user, regardless of privilege level, can execute arbitrary SQL queries against the SiYuan database, potentially exposing all stored knowledge base data and sensitive information.

Affected Products

  • B3log SiYuan versions prior to 3.6.0
  • SiYuan personal knowledge management deployments with multi-user access
  • Self-hosted SiYuan instances with authenticated user access

Discovery Timeline

  • 2026-03-06 - CVE CVE-2026-29073 published to NVD
  • 2026-03-10 - Last updated in NVD database

Technical Details for CVE-2026-29073

Vulnerability Analysis

This vulnerability represents a classic broken access control flaw combined with direct SQL execution capabilities. The /api/query/sql API endpoint in SiYuan is designed to provide database query functionality, but the implementation only verifies that a user is authenticated without checking whether that user possesses administrative privileges required for such sensitive operations.

In multi-user SiYuan deployments, this creates a significant security gap where read-only users—who should only have view access to specific content—can bypass intended access restrictions and directly query the underlying database. This effectively elevates their privileges to database administrator level for read operations.

The vulnerability is classified under CWE-89 (SQL Injection), as the endpoint permits direct SQL query execution without proper input sanitization or authorization controls.

Root Cause

The root cause of CVE-2026-29073 lies in the incomplete authorization model implemented for the /api/query/sql endpoint. The developers implemented authentication verification (ensuring users are logged in) but failed to implement authorization checks (ensuring users have appropriate privileges for the requested action). This represents a violation of the principle of least privilege, where the API should restrict powerful database operations to administrative users only.

Attack Vector

The attack vector for this vulnerability is network-based and requires low-privilege authenticated access. An attacker with any valid user account in a SiYuan instance can exploit this vulnerability through the following mechanism:

  1. Authenticate to the SiYuan application with any valid user credentials (even read-only accounts)
  2. Send a crafted HTTP request to the /api/query/sql endpoint
  3. Include arbitrary SQL queries in the request body
  4. Receive direct database query results, bypassing all content-level access controls

The vulnerability allows attackers to enumerate database schemas, extract sensitive knowledge base content, access user information, and potentially discover additional attack vectors through database reconnaissance.

Detection Methods for CVE-2026-29073

Indicators of Compromise

  • Unusual API requests to /api/query/sql from non-administrative user accounts
  • High volume of SQL query requests from a single user session
  • SQL queries accessing sensitive tables or performing data enumeration (e.g., SELECT * FROM patterns)
  • Read-only users generating database query activity in access logs

Detection Strategies

  • Monitor API access logs for requests to the /api/query/sql endpoint and correlate with user privilege levels
  • Implement anomaly detection for database query patterns that deviate from normal administrative activity
  • Deploy web application firewall (WAF) rules to flag direct SQL execution attempts from low-privilege sessions
  • Enable detailed request logging for the SiYuan API layer to capture query content

Monitoring Recommendations

  • Configure alerting for any /api/query/sql requests from users without administrative roles
  • Establish baseline metrics for database query volume and set thresholds for anomaly detection
  • Review SiYuan access logs regularly for evidence of unauthorized SQL query execution
  • Implement real-time monitoring of database read operations correlated with API request origins

How to Mitigate CVE-2026-29073

Immediate Actions Required

  • Upgrade SiYuan to version 3.6.0 or later immediately, as this version contains the security patch
  • Audit existing user accounts and remove or restrict access for any unnecessary low-privilege users
  • Review API access logs for evidence of exploitation prior to patching
  • Consider temporarily restricting network access to SiYuan instances until patching is complete

Patch Information

B3log has released SiYuan version 3.6.0 which addresses this vulnerability by implementing proper authorization checks on the /api/query/sql endpoint. The patch ensures that only users with administrative privileges can execute direct SQL queries. Organizations should update to this version as the primary remediation. For technical details about the security fix, refer to the GitHub Security Advisory GHSA-jqwg-75qf-vmf9.

Workarounds

  • Restrict network access to SiYuan instances using firewall rules or VPN requirements
  • Implement a reverse proxy with additional authorization checks for the /api/query/sql endpoint
  • Disable multi-user access and operate SiYuan in single-user mode until patching is possible
  • Deploy a WAF rule to block requests to /api/query/sql from non-administrative IP ranges or user sessions
bash
# Example nginx reverse proxy rule to restrict SQL API access
location /api/query/sql {
    # Allow only from trusted admin IPs
    allow 192.168.1.100;
    deny all;
    proxy_pass http://siyuan_backend;
}

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechB3log Siyuan

  • SeverityMEDIUM

  • CVSS Score5.7

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/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-89
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-32704: B3log Siyuan SQL Injection Vulnerability

  • CVE-2024-53504: B3log Siyuan SQL Injection Vulnerability

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