CVE-2026-54068
Received Received - Intake
Template Injection in SiYuan Prior to 3.7.0

Publication date: 2026-06-24

Last updated on: 2026-06-24

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-24
Last Modified
2026-06-24
Generated
2026-06-25
AI Q&A
2026-06-25
EPSS Evaluated
N/A
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
siyuan si_yuan 3.7.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-306 The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

The vulnerability exists in SiYuan, an open-source personal knowledge management system, prior to version 3.7.0. The /api/icon/getDynamicIcon endpoint is excluded from authentication, allowing unauthenticated access. When this endpoint is called with type=8 and a valid block ID, it executes a Go template that runs arbitrary SELECT SQL queries against the SiYuan SQLite database. This enables an unauthenticated attacker who knows a valid block ID to extract all user note content, tags, asset references, and block attributes from the database.

Impact Analysis

This vulnerability allows an unauthenticated, network-adjacent attacker to exfiltrate sensitive data stored in the SiYuan database, including all user notes, tags, asset references, and block attributes. This can lead to significant data leakage and privacy breaches, potentially exposing confidential or personal information without requiring any authentication.

Mitigation Strategies

The vulnerability is fixed in SiYuan version 3.7.0. Immediate mitigation involves upgrading SiYuan to version 3.7.0 or later.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-54068. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart