Trilium Notes CVE-2026-35593
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain or compromise Trilium admin credentials
-
DeliverySend POST to /api/attachments/{id}/upload-modified-file with malicious filePath
-
ExploitServer reads arbitrary filesystem file into attachment store
-
ExecutionRetrieve file contents via GET /api/attachments/{id}/download
-
PersistExfiltrate SSH keys or application secrets
-
ImpactPivot to co-hosted systems using stolen credentials
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a valid Trilium account with high privileges (PR:H per CVSS vector - likely administrator-level access), meaning unauthenticated exploitation is not possible. The vulnerable endpoint /api/attachments/{attachmentId}/upload-modified-file must be network-reachable (AV:N), which is common in self-hosted server deployments exposed on a LAN or internet. No specific non-default configuration is required beyond having attachments enabled, which is a core Trilium feature. The attacker must supply a valid existing attachmentId and a filePath pointing to a file readable by the OS user account under which Trilium runs. Exploitation is limited by: (1) the requirement for high-privilege authenticated access to Trilium, (2) filesystem read scope bounded by the Trilium process user's OS permissions, and (3) the attacker needing to know or guess valid attachment IDs. There is no user interaction requirement and attack complexity is low once credentials are obtained. |
| Impact | The CVSS base score of 6.8 (Medium) is somewhat understated relative to operational impact given the C:H confidentiality rating and Changed scope. PR:H (high privileges required) is the primary limiting factor suppressing the score - an attacker must already possess admin-level Trilium credentials. However, for self-hosted personal or small-team deployments (Trilium's primary use case), a single compromised admin account directly enables full filesystem read access. The S:C (Changed scope) flag is significant: exfiltrated SSH keys or application secrets pivot this from an application-layer read to a full host or adjacent-system compromise. EPSS data was not provided in the source intelligence, preventing quantitative exploitation probability assessment. No KEV listing and no public exploit code have been identified, suggesting targeted rather than opportunistic exploitation risk at this time. The attack complexity is genuinely low once credentials are obtained (AC:L), and no user interaction is required (UI:N), meaning exploitation is straightforward for any attacker who has cleared the authentication hurdle. The CVSS integrity impact of N (none) is accurate in isolation - the vulnerability is read-only - but this underrepresents the downstream write/execute risk from exfiltrated credentials. |
| Exploit ScenarioDerived | An attacker who has obtained Trilium admin credentials - through phishing, credential reuse, or brute force - sends a crafted POST request to /api/attachments/{attachmentId}/upload-modified-file with a filePath value such as /home/user/.ssh/id_rsa or /etc/passwd in the request body. The server reads the target file and stores its contents as the attachment. The attacker then issues a GET to /api/attachments/{attachmentId}/download to retrieve the file contents in plaintext, exfiltrating SSH private keys or application secrets that enable lateral movement to co-hosted systems. No public exploit code has been identified at time of analysis, but the attack requires no special tooling beyond standard HTTP requests. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 20, 2026
Path traversal via the attachment upload API in Trilium Notes 0.102.1 and prior allows an authenticated high-privilege attacker to read arbitrary files from the server's filesystem by supplying a controlled file path in a POST request body. The two-step exploitation pattern - POST to /api/attachments/{attachmentId}/upload-modified-file to stage a file, then GET from /api/attachments/{attachmentId}/download to retrieve its contents - effectively turns the attachment system into an unauthenticated file disclosure proxy once the initial write is performed. The CVSS Changed scope (S:C) reflects that exposed materials such as SSH keys, database credentials, and application configs can cascade into compromise of co-hosted services well beyond Trilium itself. No public exploit or CISA KEV listing has been identified at time of analysis.
RemediationAI
Upgrade to Trilium Notes v0.102.2 immediately - the vendor release notes explicitly flag this as a critical security release and strongly encourage immediate update for all users. The fix is confirmed in the GitHub release at https://github.com/TriliumNext/Trilium/releases/tag/v0.102.2, which also aligns attachment upload validation with note upload validation and adds MIME type checks. If immediate upgrade is not feasible, restrict network access to the Trilium API port at the firewall or reverse proxy layer to trusted IP ranges only, preventing unauthenticated network reachability to the attachment upload endpoint - note this does not eliminate risk from a compromised internal admin account. Additionally, audit the Trilium process user's OS permissions and ensure it runs under a dedicated low-privilege account with a restricted home directory, reducing the blast radius of any successful file read. Rotate any credentials or SSH keys stored in paths accessible to the Trilium process user as a precautionary measure if the instance was internet-exposed.
Affected ProductsAI
Trilium Notes versions 0.102.1 and all prior releases are affected across all supported platforms (Windows, Linux, macOS desktop via Electron, and self-hosted server deployments). The vulnerability is tracked under GitHub Security Advisory GHSA-hf4x-22rg-pjjp. No CPE string was provided in the source intelligence; affected builds correspond to TriliumNext/Trilium repository releases up to and including v0.102.1. The vendor advisory and fixed release are available at https://github.com/TriliumNext/Trilium/security/advisories/GHSA-hf4x-22rg-pjjp and https://github.com/TriliumNext/Trilium/releases/tag/v0.102.2.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Trilium Notes is a Node.js-based hierarchical knowledge base application (TriliumNext/Trilium) that exposes a REST API for managing notes and attachments. The vulnerable code path is the uploadModifiedFileToAttachment handler, which processes POST /api/attachments/{attachmentId}/upload-modified-file requests. The filePath parameter in the JSON request body is accepted without path traversal sanitization - a classic CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) failure. The handler reads the file at the attacker-supplied path and overwrites the specified attachment's stored content with it. Because Trilium runs as a server process with access to the underlying OS filesystem, any file readable by the Trilium process user is accessible. The CVSS vector AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N confirms network delivery, low complexity, no user interaction, high confidentiality impact, and scope change indicating lateral impact beyond the application boundary.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
Primary rating from Vendor (github) · only source for this CVE.
CVSS VectorVendor: github
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB