Vulnerability · Published Jun 24, 2026 · Assigned by GitHub_M

CVE-2026-54068SiYuan: Unauthenticated SQLite Data Exfiltration via Template Injection in /api/icon/getDynamicIcon

Medium 5.9

In plain English

A medium-severity missing authentication in siyuan from siyuan-note. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 4.3% (higher than 91% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)4.3%top 8.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/siyuan-note/siyuan/kernel0.0.0-20260628153353-2d5d72223df4GHSA-gcm7-57gf-953c
Gogithub.com/siyuan-note/siyuan/kernel0.0.0-20260628153353-2d5d72223df4GO-2026-5958

Affected products (as reported)

VendorProductVersions
siyuan-note siyuan < 3.7.0

Weakness: CWE-306 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

References