CVE-2026-40318
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedSiYuan 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe /api/av/removeUnusedAttributeView endpoint in SiYuan versions 3.6.3 and prior accepts a user-controlled 'id' parameter that is directly used to construct a filesystem path without any validation or path boundary checks. An attacker can inject path traversal sequences (../) in the id parameter to escape the intended directory and delete arbitrary .json files on the server, including global configuration files and workspace metadata.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 3.6.4CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- None
- Integrity
- Low
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check SiYuan versionAccess the SiYuan application and navigate to Settings > About, or check the installation directory for a version file. Compare the displayed version number to the affected range (versions prior to 3.6.4).Affected if The installed version is 3.6.3 or lower.
-
Verify API endpoint accessibilityAttempt to access the /api/av/removeUnusedAttributeView endpoint by sending a request to your SiYuan server. This can be done via curl or a web request tool. Example: curl -X POST http://localhost:6806/api/av/removeUnusedAttributeView -H 'Content-Type: application/json' -d '{"id":"test"}'Affected if The endpoint responds with any JSON response (success or error), indicating it is accessible and the API module is enabled.
-
Confirm Attribute View feature is in useCheck if Attribute View (AV) functionality is being used in the workspace. This can be done by looking for .json files in the workspace data folder that correspond to attribute views, or by accessing the SiYuan desktop/web interface and checking for blocks with attribute table views created.Affected if Attribute View files exist in the workspace or the feature is actively used.
-
Test for path traversal vulnerabilitySend a request to the /api/av/removeUnusedAttributeView endpoint with a path traversal payload in the id parameter, such as '{"id":"../../config.json"}'. Observe whether the server processes the request without rejecting path traversal characters.Affected if The server accepts path traversal sequences (../) in the id parameter without validation or rejection.
A user is affected if their SiYuan version is 3.6.3 or prior, the API endpoint is accessible, and the id parameter accepts path traversal sequences without sanitization.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped3.6.4
Upgrade to SiYuan version 3.6.4 or later, which contains the fix for this path traversal vulnerability. As a defense-in-depth measure, implement strict input validation on the id parameter to reject any path traversal sequences before deploying the upgrade.
3.6.4
- Upgrade Siyuan to version 3.6.4 or later to include the patched code that adds validation for the id parameter in the /api/av/removeUnusedAttributeView endpoint
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,088.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-40318 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-40318 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data