ZeroHour

CVE-2026-69084

moderate

Unauthenticated arbitrary SQL execution in SiYuan searchEmbedBlock (publish mode)

CVSS 4.0
9.9 critical
EPSS
1%p64
Published
()
Modified
AI analysis

The /api/search/searchEmbedBlock endpoint in SiYuan accepts a client-supplied SQL statement and executes it verbatim on the main read-write siyuan.db SQLite handle, with none of the single-statement, read-only, or admin restrictions enforced by sibling endpoints like /api/query/sql. Because the route is gated only by CheckAuth, an unauthenticated visitor (when publish authentication, Publish.Auth.Enable, is disabled) or anyone holding a Reader token can reach it through publish mode on port 6808 and run arbitrary SQL, including stacked statements and ATTACH, reading and writing across all cleartext notebooks. An attacker therefore gains read and write access to the entire note database (disclosure and tampering of note content), consistent with the CVSS 3.1 score of 10.0 (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N). Affected users are SiYuan deployments that expose the publish-mode API to untrusted networks or clients; the advisory data does not specify affected or fixed version ranges. No public proof-of-concept or in-the-wild exploitation is currently known; the flaw is not in CISA KEV and EPSS estimates a 1.1% probability of exploitation within 30 days (64th percentile).

What to do: Until a patched release is identified (no fixed version is given in the advisory), reduce exposure by enabling publish authentication (set Publish.Auth.Enable so anonymous access is disallowed), firewalling or reverse-proxy-restricting port 6808 and the /api/search/searchEmbedBlock route, and reviewing notebook data for unexpected modifications. Monitor the siyuan-note project for an update addressing CVE-2026-69084 and upgrade promptly once a fixed version is published.

Affected
SiYuan (siyuan-note/B3log) SiYuan note-taking application (kernel API, /api/search/searchEmbedBlock)
Estimated exposure
moderateon the order of 10,000-100,000 SiYuan installations, of which likely only thousands are directly reachable (publish mode enabled and network-exposed) — SiYuan is a widely used open-source note-taking application (its adoption suggests a user base in the tens of thousands), but this flaw is only reachable via the optional publish mode on port 6808 or a leaked Reader token, and the advisory…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Ecosystems
go
Weakness
CWE-89
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
GHSA
GHSA-vh22-h7hf-www7 (critical)

In the news

No ingested article mentions this CVE yet.