CVE-2026-45668: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in TriliumNext Trilium
CVE-2026-45668 is a critical path traversal and cross-site scripting (XSS) vulnerability in Trilium Notes versions prior to 0.102.2. A malicious ZIP archive imported with safe import enabled can exploit this flaw by using a crafted #docName label with .. / path traversal to access a payload note containing raw HTML/JS. Because the Electron renderer in the desktop client runs with nodeIntegration enabled, this leads to remote code execution (RCE) when the payload executes. The vulnerability is fixed in version 0.102.2.
AI Analysis
Technical Summary
Trilium Notes before version 0.102.2 is vulnerable to a path traversal (CWE-22) combined with cross-site scripting (CWE-79) that allows remote code execution. The attack involves importing a malicious ZIP archive where a trigger note uses a #docName label with ../ path traversal to reference a payload note containing executable HTML/JS code. The Electron desktop client’s nodeIntegration feature enables execution of this payload, resulting in RCE. This vulnerability has a CVSS 4.0 score of 9.3, indicating critical severity. No known exploits in the wild have been reported. The issue is resolved in version 0.102.2.
Potential Impact
Successful exploitation allows an unauthenticated attacker to achieve remote code execution on the victim's system running the vulnerable Trilium Notes desktop client. This can lead to full compromise of the user's environment where the application is installed. The vulnerability leverages path traversal to bypass directory restrictions and XSS to execute malicious scripts in the context of the Electron renderer with nodeIntegration enabled.
Mitigation Recommendations
Upgrade Trilium Notes to version 0.102.2 or later, where this vulnerability is fixed. Since this is a desktop application and not a cloud service, users must manually apply the update to remediate the issue. Patch status is confirmed by the vendor advisory stating the fix is included in version 0.102.2.
CVE-2026-45668: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in TriliumNext Trilium
Description
CVE-2026-45668 is a critical path traversal and cross-site scripting (XSS) vulnerability in Trilium Notes versions prior to 0.102.2. A malicious ZIP archive imported with safe import enabled can exploit this flaw by using a crafted #docName label with .. / path traversal to access a payload note containing raw HTML/JS. Because the Electron renderer in the desktop client runs with nodeIntegration enabled, this leads to remote code execution (RCE) when the payload executes. The vulnerability is fixed in version 0.102.2.
CVSS v4.0
Score 9.3critical
Affected software
pkg:github/triliumnext/TriliumRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Trilium Notes before version 0.102.2 is vulnerable to a path traversal (CWE-22) combined with cross-site scripting (CWE-79) that allows remote code execution. The attack involves importing a malicious ZIP archive where a trigger note uses a #docName label with ../ path traversal to reference a payload note containing executable HTML/JS code. The Electron desktop client’s nodeIntegration feature enables execution of this payload, resulting in RCE. This vulnerability has a CVSS 4.0 score of 9.3, indicating critical severity. No known exploits in the wild have been reported. The issue is resolved in version 0.102.2.
Potential Impact
Successful exploitation allows an unauthenticated attacker to achieve remote code execution on the victim's system running the vulnerable Trilium Notes desktop client. This can lead to full compromise of the user's environment where the application is installed. The vulnerability leverages path traversal to bypass directory restrictions and XSS to execute malicious scripts in the context of the Electron renderer with nodeIntegration enabled.
Mitigation Recommendations
Upgrade Trilium Notes to version 0.102.2 or later, where this vulnerability is fixed. Since this is a desktop application and not a cloud service, users must manually apply the update to remediate the issue. Patch status is confirmed by the vendor advisory stating the fix is included in version 0.102.2.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-12T21:59:25.666Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a19cdf6e29bf47b50fb4799
Added to database: 05/29/2026, 17:33:42 UTC
Last enriched: 06/05/2026, 21:20:54 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 46
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 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.