Duplicate Advisory: Unauthenticated arbitrary SQL execution via searchEmbedBlock (publish mode) : reader-reachable raw statement on read-write handle, cross-notebook read/write
Critical severity
GitHub Reviewed
Published
Aug 3, 2026
to the GitHub Advisory Database
•
Updated Sep 3, 2026
Withdrawn
This advisory was withdrawn on Sep 3, 2026
Package
Affected versions
< 3.7.3
Patched versions
None
Description
Published by the National Vulnerability Database
Aug 3, 2026
Published to the GitHub Advisory Database
Aug 3, 2026
Reviewed
Sep 3, 2026
Withdrawn
Sep 3, 2026
Last updated
Sep 3, 2026
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-vh22-h7hf-www7. This link is maintained to preserve external references.
Original Description
SiYuan versions <= v3.7.2 expose the /api/search/searchEmbedBlock endpoint, which passes a client-supplied SQL statement verbatim to the main read-write siyuan.db handle with no single-statement, read-only, or admin restrictions. The endpoint is gated only by CheckAuth, making it reachable by the publish RoleReader token and by anonymous users when publish authentication is disabled. Because the underlying driver executes stacked statements, an attacker can read and modify content across all opened cleartext notebooks (encrypted per-box notebooks are excluded). Fixed in v3.7.3.
References