ZeroHour

CVE-2026-87807

moderate

Authenticated SQL Injection in Siyuan fullTextSearchBlock Endpoint

CVSS 4.0
8.7 high
EPSS
Published
()
Modified
AI analysis

Siyuan versions before v3.8.2 contain an authenticated SQL injection flaw (CWE-89) in the fullTextSearchBlock endpoint, triggered via the method=1 query parameter. An authenticated attacker who can reach the endpoint can submit a crafted method=1 value containing a UNION SELECT statement, causing the underlying database to return arbitrary rows. This lets the attacker read the entire blocks table, bypassing Siyuan's publish-access controls and exposing all document content and sensitive attributes stored in the workspace database. Any deployment running an affected version is exposed, with the greatest risk to self-hosted instances whose web API or publish interface is reachable over a network. There is currently no known public proof-of-concept, the issue is not in CISA's KEV catalog, and no in-the-wild exploitation has been reported.

What to do: Upgrade Siyuan to v3.8.2 or later to remediate the injection in fullTextSearchBlock. Until upgraded, restrict network access to the Siyuan HTTP API, ensure authentication is enforced on all exposed endpoints, and limit or review any publish-facing configuration. Administrators of internet-exposed instances should verify that publish-access controls were not bypassed by checking for unexpected access to document content.

Affected
Siyuan (B3log) Siyuanall versions prior to v3.8.2 (fixed in v3.8.2)
Estimated exposure
moderateon the order of tens of thousands of users, with likely only low thousands of network-exposed self-hosted instances (estimate; no public install or scan data… — Siyuan is an open-source self-hosted note-taking/knowledge-management app predominantly run locally or on private networks by individuals and small teams, so this estimate assumes only the subset of deployments exposing its HTTP API or…

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

Description

siyuan versions before v3.8.2 contain an authenticated SQL injection vulnerability in the fullTextSearchBlock endpoint's method=1 query parameter. Attackers can inject UNION SELECT statements to read the entire blocks table, bypassing publish-access controls and exposing all document content and sensitive attributes.

Weakness
CWE-89
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/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

In the news

No ingested article mentions this CVE yet.