{"id":"CVE-2026-54068","published":"2026-06-24T21:15:14Z","modified":"2026-06-25T13:21:27Z","title":"SiYuan: Unauthenticated SQLite Data Exfiltration via Template Injection in /api/icon/getDynamicIcon","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04082,"percentile":0.90961,"provenance":"source"},"cwes":[{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-gcm7-57gf-953c","tags":["x_refsource_CONFIRM"]}],"priority":{"score":22.3,"factors":[{"name":"EPSS percentile","points":18.19},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"siyuan-note","affectedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["< 3.7.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-25T13:21:02.883883Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","vulnerableRanges":["<0.0.0-20260628153353-2d5d72223df4"],"patched":["0.0.0-20260628153353-2d5d72223df4"],"from":["GHSA-gcm7-57gf-953c","GO-2026-5958"],"provenance":"source"}],"summary":{"text":"SiYuan, an open-source personal knowledge management system, has a flaw in its /api/icon/getDynamicIcon endpoint, which is excluded from authentication in the kernel router and lets a Go template executing SQLite queries be reached without credentials. An unauthenticated attacker on the network who knows a valid block ID can run arbitrary SELECT statements against the database to extract note content, tags, asset references and block attributes, provided the request uses type=8 with that block ID.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:38Z"},"euvd":{"id":"EUVD-2026-39124","exploited":false,"provenance":"source"}}