Skip to main content

Kernel: Duplicate Advisory: Unauthenticated arbitrary SQL execution via searchEmbedBlock (publish mode) : reader-reachable raw statement on read-write handle, cross-notebook read/write

0
Critical
Published: 08/03/2026 (08/03/2026, 15:32:48 UTC)
Source: GCVE Database
Product: github.com/siyuan-note/siyuan/kernel

Description

SiYuan versions up to and including v3.7.2 have a critical SQL injection vulnerability in the /api/search/searchEmbedBlock endpoint. This endpoint executes client-supplied SQL statements directly on the main read-write database handle without restrictions, allowing unauthenticated attackers or those with limited publish RoleReader access to read and modify content across all opened cleartext notebooks. The vulnerability is fixed in version v3.7.3.

CVSS v3.1

Score 10.0critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N

Affected software

Goghsa
github.com/siyuan-note/siyuan/kernel

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 12:22:10 UTC

Technical Analysis

SiYuan versions <= v3.7.2 expose the /api/search/searchEmbedBlock endpoint, which accepts a client-supplied SQL statement and executes it verbatim on the main read-write siyuan.db handle. There are no single-statement, read-only, or admin restrictions applied. The endpoint is protected only by CheckAuth, making it accessible to the publish RoleReader token and anonymous users if publish authentication is disabled. Due to the underlying database driver's support for stacked statements, an attacker can perform arbitrary SQL execution, enabling cross-notebook read and write access to all opened cleartext notebooks (excluding encrypted per-box notebooks). This vulnerability is identified as CWE-89 (SQL Injection) and has a CVSS 3.1 base score of 10.0 (critical). It was fixed in version v3.7.3.

Potential Impact

An unauthenticated attacker or a user with limited publish RoleReader privileges can execute arbitrary SQL commands on the main read-write database. This allows reading and modifying data across all opened cleartext notebooks, potentially leading to full compromise of notebook contents. Encrypted per-box notebooks are not affected. The vulnerability has a critical severity rating with a CVSS score of 10.0, indicating a high impact on confidentiality and integrity.

Mitigation Recommendations

Upgrade SiYuan to version v3.7.3 or later, where this vulnerability is fixed. Until the upgrade, restrict access to the /api/search/searchEmbedBlock endpoint by enforcing strict authentication and disabling publish mode if possible. Review and monitor access controls related to the publish RoleReader token. Patch status is confirmed fixed in v3.7.3.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-p2x7-4c4p-8wh6
Osv Schema Version
1.4.0
Ecosystems
["Go"]
Database Specific Severity
CRITICAL
Cvss Version
3.1

Threat ID: 6a9ad522acd9273b49b68b67

Added to database: 09/04/2026, 14:26:42 UTC

Last enriched: 09/07/2026, 12:22:10 UTC

Last updated: 10/04/2026, 08:11:38 UTC

Views: 63

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses