← Vulnerability feed

Vulnerability record · CVE-2026-32767 · published 20 March 2026

CVE-2026-32767: B3log siyuan sql injection vulnerability

B3log · Siyuan

SiYuan is a personal knowledge management system. Versions 3.6.0 and below contain an authorization bypass vulnerability in the /api/search/fullTextSearchBlock endpoint. When the method parameter is set to 2, the endpoint passes user-supplied input directly as a raw SQL statement to the underlying SQLite database without any authorization or read-only checks. This allows any authenticated user — including those with the Reader role — to execute arbitrary SQL statements (SELECT, DELETE, UPDATE, DROP TABLE, etc.) against the application's database. This is inconsistent with the application's own security model: the dedicated SQL endpoint (/api/query/sql) correctly requires both CheckAdminRole and CheckReadonly middleware, but the search endpoint bypasses these controls entirely. This issue has been fixed in version 3.6.1.

9.8 CVSS 3.1 Critical EPSS 0.70% · top 48.9% CWE-89 · SQL injectionCWE-863 · Incorrect authorization
9.8CVSS 3.1 base score
0.70%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
5References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

SiYuan is a personal knowledge management system. Versions 3.6.0 and below contain an authorization bypass vulnerability in the /api/search/fullTextSearchBlock endpoint. When the method parameter is set to 2, the endpoint passes user-supplied input directly as a raw SQL statement to the underlying SQLite database without any authorization or read-only checks. This allows any authenticated user — including those with the Reader role — to execute arbitrary SQL statements (SELECT, DELETE, UPDATE, DROP TABLE, etc.) against the application's database. This is inconsistent with the application's own security model: the dedicated SQL endpoint (/api/query/sql) correctly requires both CheckAdminRole and CheckReadonly middleware, but the search endpoint bypasses these controls entirely. This issue has been fixed in version 3.6.1.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2026-32767 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2026-30869B3log siyuan path traversal vulnerabilitySiYuan is a personal knowledge management system. Prior to 3.5.10, a path traversal vulnerability in the /export endpoint allows an attacker to read …EPSS 1.1%9.8CVE-2024-53507B3log siyuan sql injection vulnerabilityA SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems.EPSS 0.57%9.8CVE-2024-53504B3log siyuan sql injection vulnerabilityA SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory.EPSS 0.57%9.8CVE-2024-53505B3log siyuan sql injection vulnerabilityA SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent.EPSS 0.51%9.8CVE-2024-53506B3log siyuan sql injection vulnerabilityA SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs.EPSS 0.54%9.6CVE-2026-34449B3log siyuan vulnerabilitySiYuan is a personal knowledge management system. Prior to version 3.6.2, a malicious website can achieve Remote Code Execution (RCE) on any desktop …EPSS 0.80%9.1CVE-2026-32749B3log siyuan path traversal vulnerabilitySiYuan is a personal knowledge management system. In versions 3.6.0 and below, POST /api/import/importSY and POST /api/import/importZipMd write uploa…EPSS 0.57%9.0CVE-2026-40322B3log siyuan cross-site scripting vulnerabilitySiYuan is an open-source personal knowledge management system. In versions 3.6.3 and below, Mermaid diagrams are rendered with securityLevel set to "…EPSS 0.53%

Source: NIST National Vulnerability Database (record CVE-2026-32767), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.