Skip to main content
← All vulnerabilities
CVE-2026-54068GO-2026-5958GHSA-GCM7-57GF-953C

SiYuan: Unauthenticated SQLite Data Exfiltration via Template Injection in /api/icon/getDynamicIcon

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.7.0, 0.0.0-20260628153353-2d5d72223df4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • siyuan-note siyuan

    fixed in 3.7.0

  • github.com/siyuan-note/siyuan/kernelGo

    fixed in 0.0.0-20260628153353-2d5d72223df4

References 1

GitHub · siyuan-note/siyuan