SecurityContext

CVE-2026-32767: SiYuan - Authorization Bypass & SQL Injection

  • Cve: CVE-2026-32767
  • Name: SiYuan - Authorization Bypass & SQL Injection
  • 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.
  • Impact: Authenticated users can execute arbitrary SQL commands, potentially leading to data modification or deletion and full database compromise.
  • Remediation: Upgrade to version 3.6.1 or later.
  • Vulnerability type: sql_injection
  • Vulnerability impact: data_tampering
  • Requirement type: logged_in
  • Requirements: Attacker must be authenticated, including users with Reader role
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00602
  • Epss percentile: 0.49726
  • Assignee: [email protected]
  • Published at: 2026-03-20T01:15:55Z
  • Age in days: 249
  • Modified at: 2026-06-17T10:36:20Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-32767
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-89Improper Neutralization of Special Elements used in an SQL Command

Public exploits

UrlSourceAdded date
https://github.com/siyuan-note/siyuan/security/advisories/GHSA-j7wh-x834-p3r7nvd2026-03-20

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/siyuan-note/siyuan/commit/d5e2d0bce0dffef5f61bd8066954bc2d41181fc5Patch
https://github.com/siyuan-note/siyuan/security/advisories/GHSA-j7wh-x834-p3r7Exploit, Mitigation, Vendor Advisory
https://github.com/siyuan-note/siyuan/issues/17209Issue Tracking
https://github.com/siyuan-note/siyuan/releases/tag/v3.6.1Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
b3log:siyuan< 3.6.1nonvd/v1/products/b3log/siyuan

Projects

RepositoryLink kindsIndexedUrl
siyuan-note/siyuancommit, fix, issues, package, releases, security_advisoryyes/v1/repositories/siyuan-note/siyuan

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-03-20
  • Remote: yes
  • Exposed hosts: 354
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports