The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-32767

CVE-2026-32767: B3log Siyuan Auth Bypass Vulnerability

CVE-2026-32767 is an authorization bypass vulnerability in B3log Siyuan that enables Reader-role users to execute arbitrary SQL statements. This article covers technical details, affected versions, impact, and mitigation.

Published: March 27, 2026

CVE-2026-32767 Overview

CVE-2026-32767 is a SQL Injection vulnerability affecting SiYuan, a personal knowledge management system developed by B3log. The vulnerability exists in the /api/search/fullTextSearchBlock endpoint where user-supplied input is passed directly as a raw SQL statement to the underlying SQLite database without proper authorization or read-only checks when the method parameter is set to 2. This flaw allows any authenticated user, including those with the Reader role, to execute arbitrary SQL statements against the application's database, enabling unauthorized data access, modification, or deletion.

Critical Impact

This authorization bypass vulnerability allows low-privileged users to execute arbitrary SQL commands (SELECT, DELETE, UPDATE, DROP TABLE) against the SiYuan database, potentially leading to complete data compromise, data loss, or application destruction.

Affected Products

  • B3log SiYuan versions 3.6.0 and below

Discovery Timeline

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

Technical Details for CVE-2026-32767

Vulnerability Analysis

The vulnerability stems from an inconsistent implementation of access controls across the SiYuan API. While the dedicated SQL endpoint (/api/query/sql) correctly enforces CheckAdminRole and CheckReadonly middleware to restrict database operations to administrators, the /api/search/fullTextSearchBlock endpoint bypasses these security controls entirely.

When an attacker sends a request to the vulnerable endpoint with the method parameter set to 2, the application passes the user-supplied input directly to the SQLite database engine without sanitization or authorization verification. This allows any authenticated user—regardless of their assigned role—to craft and execute arbitrary SQL statements.

The impact of this vulnerability is severe: attackers can read sensitive data from any table, modify or delete existing records, drop entire tables, and potentially compromise the integrity of the entire knowledge base. This is particularly concerning for multi-user SiYuan deployments where Reader-role users should only have read access to content.

Root Cause

The root cause is a missing authorization check in the /api/search/fullTextSearchBlock endpoint handler. When method=2 is specified, the code path fails to invoke the CheckAdminRole and CheckReadonly middleware functions that are correctly implemented on the /api/query/sql endpoint. This represents an inconsistency in the application's security model where equivalent database access functionality has disparate access control enforcement.

Attack Vector

The attack vector is network-based and requires authentication. An attacker with any valid SiYuan account, including a low-privileged Reader role, can exploit this vulnerability by sending crafted HTTP requests to the /api/search/fullTextSearchBlock endpoint. By setting the method parameter to 2 and supplying a malicious SQL statement in the request body, the attacker can execute arbitrary database commands.

The exploitation scenario involves:

  1. Authenticating to the SiYuan application with any valid credentials
  2. Crafting an HTTP POST request to /api/search/fullTextSearchBlock with method=2
  3. Including arbitrary SQL statements in the request payload
  4. The SQL statements execute directly against the SQLite database without role verification

For technical implementation details, refer to the GitHub Security Advisory GHSA-j7wh-x834-p3r7 and the related issue discussion.

Detection Methods for CVE-2026-32767

Indicators of Compromise

  • Unusual HTTP POST requests to /api/search/fullTextSearchBlock with method=2 parameter from non-admin users
  • SQL keywords (DROP, DELETE, UPDATE, INSERT, UNION) appearing in search API request payloads
  • Database integrity errors or unexpected table modifications without corresponding admin activity
  • Reader-role accounts accessing or modifying data outside their permitted scope

Detection Strategies

  • Implement web application firewall (WAF) rules to inspect requests to /api/search/fullTextSearchBlock for SQL injection patterns
  • Enable detailed request logging for all API endpoints and alert on requests containing raw SQL keywords
  • Monitor application logs for database errors that may indicate injection attempts
  • Audit user activity logs for Reader-role accounts performing operations inconsistent with their permissions

Monitoring Recommendations

  • Configure SIEM alerts for high-volume or anomalous requests to the vulnerable endpoint
  • Implement database activity monitoring to detect unauthorized schema changes or bulk data operations
  • Review authentication logs to identify compromised accounts being used to exploit the vulnerability
  • Establish baseline API usage patterns to detect deviations indicative of exploitation

How to Mitigate CVE-2026-32767

Immediate Actions Required

  • Upgrade SiYuan to version 3.6.1 or later immediately
  • Audit database contents for signs of unauthorized modification or data exfiltration
  • Review access logs to identify potential exploitation attempts prior to patching
  • Rotate credentials for any accounts that may have been compromised

Patch Information

B3log has released SiYuan version 3.6.1 which addresses this vulnerability by implementing proper authorization checks on the /api/search/fullTextSearchBlock endpoint. The fix ensures that the CheckAdminRole and CheckReadonly middleware are enforced when the method=2 parameter is used.

Refer to the official release notes for upgrade instructions. The specific code changes can be reviewed in the security patch commit.

Workarounds

  • If immediate patching is not possible, restrict network access to the SiYuan application to trusted users only
  • Implement a reverse proxy with request filtering to block requests containing method=2 to the /api/search/fullTextSearchBlock endpoint
  • Temporarily disable Reader-role accounts until the patch can be applied
  • Implement network segmentation to limit the blast radius of potential exploitation
bash
# Example nginx configuration to block vulnerable endpoint parameter
location /api/search/fullTextSearchBlock {
    if ($request_body ~* "method.*2") {
        return 403;
    }
    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
  • TypeAuth Bypass

  • Vendor/TechB3log Siyuan

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • GitHub Issue Discussion

  • GitHub Release v3.6.1
  • Vendor Resources
  • GitHub Commit Change

  • GitHub Security Advisory GHSA-j7wh-x834-p3r7
  • Related CVEs
  • CVE-2026-33476: B3log Siyuan Path Traversal Vulnerability

  • CVE-2026-33194: B3log Siyuan Path Traversal Vulnerability

  • CVE-2026-33203: B3log Siyuan DOS Vulnerability

  • CVE-2026-32940: B3log Siyuan XSS 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