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.
Published: 2026-05-29
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Fri, 29 May 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 29 May 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Triliumnext
Triliumnext trilium
Vendors & Products Triliumnext
Triliumnext trilium

Fri, 29 May 2026 17:30:00 +0000

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'}


Subscriptions

Triliumnext Trilium
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-29T19:23:26.469Z

Reserved: 2026-05-12T21:59:25.666Z

Link: CVE-2026-45668

cve-icon Vulnrichment

Updated: 2026-05-29T19:22:40.261Z

cve-icon NVD

Status : Received

Published: 2026-05-29T18:17:11.917

Modified: 2026-05-29T20:16:27.260

Link: CVE-2026-45668

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-29T19:30:05Z

Weaknesses