Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-32704: CWE-285: Improper Authorization in siyuan-note siyuan

0
Medium
VulnerabilityCVE-2026-32704cvecve-2026-32704cwe-285cwe-732
Published: Fri Mar 13 2026 (03/13/2026, 21:10:36 UTC)
Source: CVE Database V5
Vendor/Project: siyuan-note
Product: siyuan

Description

CVE-2026-32704 is an improper authorization vulnerability in SiYuan personal knowledge management system versions prior to 3. 6. 1. It allows any authenticated user to execute arbitrary SQL queries via the POST /api/template/renderSprig endpoint due to missing admin role checks. This leads to exfiltration of all note content, metadata, and custom attributes stored in the workspace database. The vulnerability does not require user interaction beyond authentication and has a CVSS score of 6. 5 (medium severity). It affects all deployments running versions before 3. 6. 1 and is fixed in that release.

AI-Powered Analysis

AILast updated: 03/13/2026, 21:45:38 UTC

Technical Analysis

CVE-2026-32704 is a security vulnerability classified under CWE-285 (Improper Authorization) and CWE-732 (Incorrect Permission Assignment for Critical Resource) affecting the SiYuan personal knowledge management system prior to version 3.6.1. The vulnerability exists in the POST /api/template/renderSprig API endpoint, which lacks proper verification of the user's administrative role via the model.CheckAdminRole function. As a result, any authenticated user, regardless of privilege level, can craft requests to execute arbitrary SQL queries directly against the SiYuan workspace database. This flaw enables unauthorized extraction of all stored note content, metadata, and custom attributes, severely compromising confidentiality. The vulnerability does not impact data integrity or availability but exposes sensitive user data to unauthorized disclosure. Exploitation requires only authentication, no additional user interaction, and can be performed remotely over the network. The CVSS v3.1 base score is 6.5, reflecting medium severity due to high confidentiality impact but limited integrity and availability impact. The issue was addressed and fixed in SiYuan version 3.6.1 by implementing proper admin role checks on the vulnerable endpoint. No public exploits have been reported to date, but the risk remains for unpatched systems. This vulnerability highlights the critical need for strict authorization controls on API endpoints that interact with sensitive data stores.

Potential Impact

The primary impact of CVE-2026-32704 is the unauthorized disclosure of sensitive information stored within the SiYuan knowledge management system. Attackers with any authenticated user credentials can leverage this flaw to execute arbitrary SQL queries, enabling them to extract all notes, metadata, and custom attributes. This can lead to significant data breaches, loss of intellectual property, exposure of confidential information, and potential privacy violations. Organizations relying on SiYuan for personal or enterprise knowledge management face risks of insider threats or compromised user accounts being exploited to access sensitive data. Although the vulnerability does not allow modification or deletion of data, the confidentiality breach alone can have serious reputational and compliance consequences. The ease of exploitation and network accessibility increase the likelihood of attacks, especially in environments where user authentication is weak or where many users have access to the system. The absence of known exploits in the wild reduces immediate risk but does not eliminate the threat, especially as attackers may develop exploits following public disclosure.

Mitigation Recommendations

To mitigate CVE-2026-32704, organizations should immediately upgrade all SiYuan deployments to version 3.6.1 or later, where the vulnerability is patched by enforcing proper admin role checks on the /api/template/renderSprig endpoint. Additionally, restrict user access to the SiYuan system to trusted individuals and implement strong authentication mechanisms such as multi-factor authentication to reduce the risk of compromised credentials. Conduct a thorough audit of user roles and permissions to ensure least privilege principles are applied, limiting authenticated users' capabilities to only what is necessary. Monitor logs for unusual API usage patterns indicative of unauthorized SQL query attempts. If upgrading is temporarily not possible, consider network-level controls such as IP whitelisting or VPN access restrictions to limit exposure. Finally, educate users about the importance of credential security and promptly revoke access for inactive or suspicious accounts. Regularly review and update security policies related to knowledge management systems to prevent similar authorization flaws.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-13T14:33:42.823Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69b481d42f860ef943b5ebc0

Added to database: 3/13/2026, 9:29:56 PM

Last enriched: 3/13/2026, 9:45:38 PM

Last updated: 3/14/2026, 3:13:33 AM

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses