MEDIUM

CVE-2026-54068

2026-06-24 CVSS v3.1
CVSS
5.9

Description

SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, the /api/icon/getDynamicIcon endpoint is explicitly excluded from authentication in SiYuan's kernel router (router.go, "不需要鉴权" -- no auth needed). When called with type=8 and a valid block id parameter, this endpoint invokes RenderDynamicIconContentTemplate, which executes a Go template that includes the querySQL and queryBlocks functions. These functions run arbitrary SELECT statements against the SiYuan SQLite database. An unauthenticated network-adjacent attacker who knows a valid block ID can exfiltrate all user note content, tags, asset references, and block attributes from the database. This vulnerability is fixed in 3.7.0.

Summary dbcve.org

SiYuan's /api/icon/getDynamicIcon endpoint is explicitly excluded from authentication. When called with type=8 and a valid block ID, it executes Go templates containing querySQL and queryBlocks functions that run arbitrary SELECT statements against the SQLite database, allowing unauthenticated network-adjacent attackers to exfiltrate all user note content, tags, assets, and block attributes.

Mitigation

Upgrade to SiYuan version 3.7.0 or later to patch this authentication bypass vulnerability.

Weakness (CWE)

CWE-306 Missing Authentication

EPSS Score

0.38%
Probability of exploitation in next 30 days
31.6th percentile

References

View on dbcve.org
Base CVE data derived from NVD (public domain). Enrichment by dbcve.org (CC-BY-4.0). Fetched via API.
Back to CVE