CVE-2026-40318: CWE-24: Path Traversal: '../filedir' in siyuan-note siyuan
SiYuan is an open-source personal knowledge management system. In versions 3.6.3 and prior, the /api/av/removeUnusedAttributeView endpoint constructs a filesystem path using the user-controlled id parameter without validation or path boundary enforcement. An attacker can inject path traversal sequences such as ../ into the id value to escape the intended directory and delete arbitrary .json files on the server, including global configuration files and workspace metadata. This issue has been fixed in version 3.6.4.
AI Analysis
Technical Summary
CVE-2026-40318 is a path traversal vulnerability (CWE-24) in the SiYuan personal knowledge management system, affecting versions prior to 3.6.4. The /api/av/removeUnusedAttributeView endpoint improperly constructs filesystem paths using the id parameter without validating or enforcing path boundaries. This flaw allows an attacker with at least low privileges to inject '../' sequences to escape the intended directory and delete arbitrary .json files, including global configuration and workspace metadata files. This can lead to integrity compromise and denial of service. The issue is resolved in version 3.6.4.
Potential Impact
An attacker with low privileges can exploit this vulnerability to delete arbitrary JSON files on the server, including critical configuration and workspace metadata files. This can result in loss of data integrity and availability, potentially disrupting the service or causing data loss. There is no indication of confidentiality impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade SiYuan to version 3.6.4 or later, where this vulnerability has been fixed. Since this is a self-hosted application, users must apply the update manually. Patch status is confirmed by the vendor's versioning information. No additional mitigations are specified.
CVE-2026-40318: CWE-24: Path Traversal: '../filedir' in siyuan-note siyuan
Description
SiYuan is an open-source personal knowledge management system. In versions 3.6.3 and prior, the /api/av/removeUnusedAttributeView endpoint constructs a filesystem path using the user-controlled id parameter without validation or path boundary enforcement. An attacker can inject path traversal sequences such as ../ into the id value to escape the intended directory and delete arbitrary .json files on the server, including global configuration files and workspace metadata. This issue has been fixed in version 3.6.4.
CVSS v3.1
Score 8.5high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-40318 is a path traversal vulnerability (CWE-24) in the SiYuan personal knowledge management system, affecting versions prior to 3.6.4. The /api/av/removeUnusedAttributeView endpoint improperly constructs filesystem paths using the id parameter without validating or enforcing path boundaries. This flaw allows an attacker with at least low privileges to inject '../' sequences to escape the intended directory and delete arbitrary .json files, including global configuration and workspace metadata files. This can lead to integrity compromise and denial of service. The issue is resolved in version 3.6.4.
Potential Impact
An attacker with low privileges can exploit this vulnerability to delete arbitrary JSON files on the server, including critical configuration and workspace metadata files. This can result in loss of data integrity and availability, potentially disrupting the service or causing data loss. There is no indication of confidentiality impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade SiYuan to version 3.6.4 or later, where this vulnerability has been fixed. Since this is a self-hosted application, users must apply the update manually. Patch status is confirmed by the vendor's versioning information. No additional mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-10T21:41:54.505Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e2142282d89c981fcd7cf1
Added to database: 4/17/2026, 11:06:10 AM
Last enriched: 4/24/2026, 4:12:53 PM
Last updated: 6/2/2026, 12:33:11 AM
Views: 91
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.
Need more coverage?
Upgrade to Pro Console 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.