Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/siyuan-note/siyuan/kernel
  4. ›
  5. CVE-2026-54068

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

July 10, 2026

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.

References

  • github.com/advisories/GHSA-gcm7-57gf-953c
  • github.com/siyuan-note/siyuan/security/advisories/GHSA-gcm7-57gf-953c
  • nvd.nist.gov/vuln/detail/CVE-2026-54068

Code Behaviors & Features

Detect and mitigate CVE-2026-54068 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.0.0-20260628153353-2d5d72223df4

Fixed versions

  • 0.0.0-20260628153353-2d5d72223df4

Solution

Upgrade to version 0.0.0-20260628153353-2d5d72223df4 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-306: Missing Authentication for Critical Function

Source file

go/github.com/siyuan-note/siyuan/kernel/CVE-2026-54068.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:48 +0000.