Skip to main content

SiYuan CVE-2026-54068

| EUVDEUVD-2026-39124 MEDIUM
Missing Authentication for Critical Function (CWE-306)
2026-06-24 GitHub_M GHSA-gcm7-57gf-953c
5.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify network-reachable SiYuan instance
  2. Delivery
    Obtain or enumerate valid block ID
  3. Exploit
    Send unauthenticated HTTP request to /api/icon/getDynamicIcon with type=8
  4. Execution
    Server renders Go template executing querySQL against SQLite
  5. Impact
    Receive complete note database contents in response

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication required for critical functions
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires two concrete conditions: (1) the attacker must have network reachability to SiYuan's HTTP API port - the description characterizes this as network-adjacent, meaning the same LAN segment or a SiYuan instance that has been bound to a non-loopback interface; and (2) the attacker must supply a valid SiYuan block ID in the request parameter. Block IDs in SiYuan follow a timestamp-derived format, which may reduce the entropy of guessing or allow enumeration. No authentication, session token, or user interaction is required - the endpoint is explicitly exempted from SiYuan's auth middleware. Exploitation is limited by: block ID availability (a soft but not hard prerequisite), network proximity (default localhost binding limits exposure), and the read-only nature of the SQL access (no write or code execution path via this endpoint). The type=8 parameter specifically must be used to trigger the vulnerable template rendering path.

Impact

The provided CVSS 3.1 score of 5.9 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N) captures the core trade-off: the confidentiality impact is high (full database read), but exploitation complexity is elevated because a valid block ID must be known in advance. There is a notable discrepancy between the CVSS attack vector (AV:N, implying internet-reachable) and the description's characterization of the attacker as 'network-adjacent,' which better matches SiYuan's typical deployment as a locally-bound desktop or self-hosted personal tool. AV:A is likely the more accurate metric; if SiYuan is not externally exposed, the practical attacker population shrinks considerably. No public exploit code, proof-of-concept, or CISA KEV listing has been identified, and EPSS data was not provided in the source intelligence. The absence of a POC reduces near-term opportunistic risk, but the block ID requirement is a soft prerequisite - block IDs follow a deterministic format and may be guessable or obtainable through other application interactions (e.g., shared links). Overall: elevated real-world risk for multi-user or network-exposed SiYuan deployments; low risk for single-user instances bound to localhost with no external exposure.

Exploit ScenarioDerived

An attacker on the same local network as a SiYuan instance - or one who has obtained a valid SiYuan block ID through a shared note link or prior reconnaissance - sends a crafted unauthenticated GET request to /api/icon/getDynamicIcon?type=8&id=<blockID>. The endpoint renders a Go template invoking querySQL against the SQLite database without any credential check, and the full contents of the user's notes, tags, and metadata are returned in the response. No public proof-of-concept has been identified at time of analysis, but the attack requires no special tooling beyond a standard HTTP client.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 24, 2026

SiYuan's personal knowledge management system prior to 3.7.0 exposes all user note content to unauthenticated database exfiltration through a deliberately auth-excluded API endpoint. The /api/icon/getDynamicIcon endpoint, when invoked with type=8 and a valid block ID, renders a Go template that executes arbitrary SELECT queries against SiYuan's SQLite backend via querySQL and queryBlocks functions - functions designed for note querying but reachable without any credential check. An attacker with network adjacency who possesses a valid block ID can read the entire database: note content, tags, asset references, and block attributes. No public exploit or CISA KEV listing has been identified at time of analysis; the AC:H rating reflects the block ID prerequisite. A fix is available in version 3.7.0.

RemediationAI

The primary fix is to upgrade SiYuan to version 3.7.0 or later, which resolves the missing authentication guard on the /api/icon/getDynamicIcon endpoint. The vendor advisory is available at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-gcm7-57gf-953c. For deployments that cannot immediately upgrade, the most effective compensating control is to restrict network access to SiYuan's API port so the application is only reachable from localhost (127.0.0.1) - this eliminates the network-adjacent attack surface entirely. If the application must be remotely accessible, placing it behind an authenticated reverse proxy (e.g., nginx with HTTP basic auth or mTLS) at the network boundary will enforce a credential check that the application itself omits. Note that firewall-only controls do not address the missing authentication at the application layer and would not protect against an attacker already on the same local network segment.

Affected VersionsENISA

SiYuan < 3.7.0

Affected Packages

go github.com/siyuan-note/siyuan/kernel fix: 0.0.0-20260628153353-2d5d72223df4
euvd siyuan fix: 3.7.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

SiYuan (CPE: cpe:2.3:a:siyuan-note:siyuan:*:*:*:*:*:*:*:*) is a Go-based personal knowledge management application that stores all user data in a local SQLite database. Its kernel router (router.go) explicitly tags the /api/icon/getDynamicIcon endpoint with a 'no auth needed' exemption. When the type=8 parameter is supplied, the endpoint calls RenderDynamicIconContentTemplate, which processes a Go text/template that has access to querySQL and queryBlocks - internal SiYuan functions capable of running arbitrary SQL SELECT statements against the user's data store. The root cause maps to CWE-306 (Missing Authentication for Critical Function): a powerful query-capable code path was made accessible without any authentication gate, whether by design oversight or an incorrect assumption that the endpoint would only be called by the local interface.

Know when Siyuan gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 5.3 MEDIUM

AV:A reflects the network-adjacent attacker characterization in the description; AC:H reflects the valid block ID prerequisite; PR:N confirmed by explicit auth exemption in router.

3.1 AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:A/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

1
Patch available
Jun 24, 2026 - 23:03 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Low
niche open-source personal knowledge management tool
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Siyuan

View all
CVE-2026-69083 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role

CVE-2026-54067 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a

CVE-2026-69084 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements

CVE-2026-54158 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,

CVE-2026-69085 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr

CVE-2024-53507 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t

CVE-2024-53506 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R

CVE-2024-53505 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti

CVE-2024-53504 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c

CVE-2026-23852 CRITICAL POC
9.6 Jan 19

SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex

CVE-2026-56397 CRITICAL POC
9.4 Jun 21

Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package

CVE-2026-54069 CRITICAL POC
9.2 Jun 24

Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy