Description
Trilium is an open-source hierarchical note-taking application. In versions up to and including 0.103.0, the default-on "Safe import" filter does not sanitize note titles, and the GeoMap note view interpolates a marker note's title into raw HTML that is rendered as innerHTML, allowing an attacker-supplied import archive to inject script that runs when the map is displayed. Because Safe import neutralizes scripts but never escapes titles, a note whose title contains an HTML event-handler payload survives the import and executes as soon as the victim opens the GeoMap that renders its marker. On the desktop client the Electron renderer runs with Node integration enabled, so the injected JavaScript escalates from cross-site scripting to full remote code execution on the victim's machine. This issue is fixed in version 0.104.0.
Published: 2026-08-27
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Trilium, an open‑source hierarchical note‑taking application, allows attackers to embed malicious JavaScript in an imported note title. The Safe import filter discards script tags but fails to escape titles, and the GeoMap view places the title directly into innerHTML. When a user opens the map in the desktop client, the renderer runs with Node integration enabled, so the injected script gains full Node privileges and can execute arbitrary code on the system. This elevates a classic cross‑site scripting flaw into a remote code execution vulnerability that can read, modify, or delete files and spawn processes.

Affected Systems

The vulnerability affects Trilium releases through version 0.103.0. Versions 0.104.0 and later contain the fix. The issue is limited to the desktop client; the web interface does not expose the same execution path.

Risk and Exploitability

The CVSS score of 9.3 signals a high severity attack surface. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog. Attackers must entice a user to import a crafted archive and then view a GPS‑map note containing the malicious title. The attack vector is user‑initiated and local, so exploitation does not require external network access. Once both conditions are met, the lack of title escaping combined with Node integration grants the attacker uncontrolled access to the victim’s machine.

Generated by OpenCVE AI on August 28, 2026 at 07:00 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Trilium to version 0.104.0 or later, which sanitizes titles in Safe import.
  • If an upgrade cannot be performed immediately, restrict imports to archives from trusted sources and avoid opening GeoMap views from unsanctioned files.
  • Run Trilium in a sandboxed or virtual environment to limit the impact of any execution of malicious scripts.

Generated by OpenCVE AI on August 28, 2026 at 07:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 28 Aug 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 28 Aug 2026 06:15:00 +0000

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

Thu, 27 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Description Trilium is an open-source hierarchical note-taking application. In versions up to and including 0.103.0, the default-on "Safe import" filter does not sanitize note titles, and the GeoMap note view interpolates a marker note's title into raw HTML that is rendered as innerHTML, allowing an attacker-supplied import archive to inject script that runs when the map is displayed. Because Safe import neutralizes scripts but never escapes titles, a note whose title contains an HTML event-handler payload survives the import and executes as soon as the victim opens the GeoMap that renders its marker. On the desktop client the Electron renderer runs with Node integration enabled, so the injected JavaScript escalates from cross-site scripting to full remote code execution on the victim's machine. This issue is fixed in version 0.104.0.
Title Trilium: Malicious import with GeoMap marker title XSS leads to RCE on the desktop client
Weaknesses CWE-79
CWE-94
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-08-29T03:56:03.899Z

Reserved: 2026-05-26T23:26:07.976Z

Link: CVE-2026-48996

cve-icon Vulnrichment

Updated: 2026-08-28T15:54:05.907Z

cve-icon NVD

Status : Received

Published: 2026-08-27T20:17:47.127

Modified: 2026-08-29T04:18:05.523

Link: CVE-2026-48996

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T07:15:05Z

Weaknesses
  • CWE-79

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

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')