What’s Vulnerable › Vulnerabilities
CVE-2026-54068: SiYuan: Unauthenticated SQLite Data Exfiltration via Template Injection in /api/icon/getDynamicIcon
- Severity: medium (CVSS 5.9 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 4.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-06-24 · updated 2026-10-25
- Weakness: CWE-306
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.
Affected products
- siyuan-note siyuan: before 3.7.0
References
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-gcm7-57gf-953c
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-gcm7-57gf-953c
Get alerted when CVE-2026-54068 or the next vulnerability affects your stack