CVE-2026-32704: CWE-285: Improper Authorization in siyuan-note siyuan
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 Analysis
Technical Summary
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.
Affected Countries
United States, China, Germany, Japan, South Korea, United Kingdom, France, Canada, Australia, India
CVE-2026-32704: CWE-285: Improper Authorization in siyuan-note 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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.