What’s Vulnerable › Vulnerabilities
CVE-2026-35593: Trilium Notes has Local File Inclusion via upload modified file API endpoint
- Severity: medium (CVSS 6.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-05-20 · updated 2026-07-24
- Weakness: CWE-22
Description
Trilium Notes is an open-source, cross-platform hierarchical note taking application for building large personal knowledge bases. Versions 0.102.1 and prior are vulnerable to Local File Inclusion, allowing an authenticated attacker to read sensitive arbitrary files from the server's filesystem. The uploadModifiedFileToAttachment function, which is called when a POST request is received to /api/attachments/{attachmentId}/upload-modified-file, replaces the content of the attachment with the content from another file (whose path is provided in filePath of Request body). After which the content of the attachment can be viewed at /api/attachments/{attachmentId}/download. This exposes sensitive system files such as SSH keys, credentials, configs, and OS files, potentially leading to remote code execution and compromise of co-hosted applications. This issue has been fixed in version 0.102.2.
Affected products
- TriliumNext Trilium: before 0.102.2
References
- https://github.com/TriliumNext/Trilium/releases/tag/v0.102.2
- https://github.com/TriliumNext/Trilium/security/advisories/GHSA-hf4x-22rg-pjjp
- https://github.com/TriliumNext/Trilium/security/advisories/GHSA-hf4x-22rg-pjjp
Get alerted when CVE-2026-35593 or the next vulnerability affects your stack