CVE-2026-45668

Trilium Notes : Note Import to RCE via #docName Path Traversal (Safe Import Enabled)

Published May 29, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
Description
Trilium Notes is a cross-platform, hierarchical note taking application focused on building large personal knowledge bases. Prior to 0.102.2, a malicious ZIP archive imported with safe import enabled achieves RCE via #docName path traversal and XSS by combining a payload note (type: code, mime: text/plain) containing raw HTML/JS and a trigger note (type: doc or type: launcher) with a #docName label that uses ../ path traversal to point at the payload note's API endpoint. The desktop client Electron renderer runs with nodeIntegration enabled, so an RCE is triggered once the payload is executed. This vulnerability is fixed in 0.102.2.

Analysis

AI-generated

Technical impact

This vulnerability arises when a malicious ZIP archive is imported into Trilium Notes with the safe import feature enabled. The attacker can embed a payload note of type code containing raw HTML and JavaScript, and a trigger note that references the payload via a #docName label containing '..' path traversal. The path traversal allows the payload note's API endpoint to be accessed from the victim's desktop, and because the Electron renderer runs with nodeIntegration, the malicious script is executed, yielding remote code execution. The same mechanism also permits cross‑site scripting when the victim views the note, as the payload can inject arbitrary client‑side code.

Affected Systems

The affected product is Trilium Notes from TriliumNext:Trilium. Versions earlier than 0.102.2 are vulnerable. No specific sub‑product or operating system is mentioned, so all builds of the application, including the desktop Electron client, are potentially impacted. Users who install Trilium from source or binaries prior to the 0.102.2 release must consider updates.

Risk and Exploitability

The CVSS score of 9.3 indicates critical severity. The EPSS score is not available, so the current exploitation probability is unknown, but the incident suggests that attackers can exploit the flaw by distributing malicious ZIP files to unsuspecting users. The vulnerability is not listed in the CISA KEV catalog, yet it remains a high‑risk issue because the path to RCE is straightforward once the ZIP is imported. Systems relying on Trilium should immediately apply the vendor patch or, if a patch is not immediately possible, restrict safe import to trusted sources and monitor for suspicious import activity.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Trilium Notes to version 0.102.2 or newer, which invalidates the path traversal and XSS vectors that lead to RCE.
  • Review and tighten import settings: limit safe import to archives from trusted sources or disable safe import if it is not required.
  • Scrutinize existing notes for embedded #docName references or raw JavaScript before sharing or exporting them, and remove any suspicious content.

Generated by OpenCVE AI on May 29, 2026 at 18:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Triliumnext
Triliumnext trilium
Vendors & Products Triliumnext
Triliumnext trilium
Type Values Removed Values Added
Description Trilium Notes is a cross-platform, hierarchical note taking application focused on building large personal knowledge bases. Prior to 0.102.2, a malicious ZIP archive imported with safe import enabled achieves RCE via #docName path traversal and XSS by combining a payload note (type: code, mime: text/plain) containing raw HTML/JS and a trigger note (type: doc or type: launcher) with a #docName label that uses ../ path traversal to point at the payload note's API endpoint. The desktop client Electron renderer runs with nodeIntegration enabled, so an RCE is triggered once the payload is executed. This vulnerability is fixed in 0.102.2.
Title Trilium Notes : Note Import to RCE via #docName Path Traversal (Safe Import Enabled)
Weaknesses CWE-22
CWE-79
References
Metrics cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 29, 2026, 7:23 PM
Reserved
May 12, 2026, 9:59 PM
Status
Deferred
Published
May 29, 2026, 6:17 PM
Modified
Jul 22, 2026, 6:10 AM