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

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 24% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-24T21:15:14.983Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-gcm7-57gf-953c, GO-2026-5958
- Weaknesses: CWE-306
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- siyuan-note siyuan: < 3.7.0
- github.com/siyuan-note/siyuan/kernel (Go): before 0.0.0-20260628153353-2d5d72223df4

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-gcm7-57gf-953c> (exploit, advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54068> (advisory)
- <https://github.com/siyuan-note/siyuan> (package)

## Sources

- CVE List: [CVE-2026-54068](https://www.cve.org/CVERecord?id=CVE-2026-54068), CVE Terms of Use, modified 2026-06-25
- GitHub Advisory Database: [GHSA-gcm7-57gf-953c](https://github.com/advisories/GHSA-gcm7-57gf-953c), CC-BY-4.0, modified 2026-07-21
- Go Vulnerability Database: [GO-2026-5958](https://pkg.go.dev/vuln/GO-2026-5958), CC-BY-4.0, modified 2026-07-21
- NVD: [CVE-2026-54068](https://nvd.nist.gov/vuln/detail/CVE-2026-54068), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-54068 · Whole record: https://cve.day/CVE-2026-54068.json · Rebuilt by cve.day 2026-11-25T22:59:25.760Z
