Description
Trilium Notes is a cross-platform, hierarchical note taking application focused on building large personal knowledge bases. Prior to 0.103.0, the #iconClass label value is returned raw by getNoteIcon() and inserted without HTML attribute encoding into class attributes in apps/client/src/widgets/quick_search.ts and apps/client/src/services/note_autocomplete.ts, allowing a stored payload to execute automatically when a victim opens a new tab or uses Ctrl+J and, because Electron enables nodeIntegration and disables contextIsolation, run operating-system commands as the victim. This issue is fixed in version 0.103.0.
Published: 2026-08-18
Score: 8.3 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Trilium Notes allows a note's #iconClass label to be stored directly and later rendered without sanitization. This stored payload can inject arbitrary HTML into class attributes. (CWE‑79: Stored Cross‑Site Scripting) When a user opens a new search tab or presses Ctrl+J, the application automatically executes the payload. Because the Electron framework is configured with nodeIntegration enabled and contextIsolation disabled, the JavaScript code can invoke Node APIs and launch operating‑system commands under the user’s account.

Affected Systems

This problem affects TriliumNext:Trilium before version 0.103.0. Users running Trilium 0.102.x or earlier are susceptible. The fixed version 0.103.0 and later are not impacted.

Risk and Exploitability

The CVSS score is 8.3, indicating a high severity. EPSS data is unavailable, so the exact exploitation probability is unknown, but the flaw can be triggered by any user who opens a note containing a malicious icon class. The vulnerability is not listed in the CISA KEV catalog. Because the exploit requires the victim to have the application installed and to open a note, the attack vector is local or remote if notes are shared, and the attacker can achieve full code execution on the victim’s machine.

Generated by OpenCVE AI on August 18, 2026 at 16:57 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Trilium to v0.103.0 or later.
  • In older installations, avoid opening notes from untrusted sources and limit access to the notes database.
  • Consider reconfiguring Electron to disable nodeIntegration and enable contextIsolation for added security, if the application allows such changes.

Generated by OpenCVE AI on August 18, 2026 at 16:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 18:00:00 +0000

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

Tue, 18 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 18 Aug 2026 15:15: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.103.0, the #iconClass label value is returned raw by getNoteIcon() and inserted without HTML attribute encoding into class attributes in apps/client/src/widgets/quick_search.ts and apps/client/src/services/note_autocomplete.ts, allowing a stored payload to execute automatically when a victim opens a new tab or uses Ctrl+J and, because Electron enables nodeIntegration and disables contextIsolation, run operating-system commands as the victim. This issue is fixed in version 0.103.0.
Title Trilium: Stored XSS in note icon rendering leads to Remote Code Execution in Electron desktop app
Weaknesses CWE-693
CWE-79
CWE-83
References
Metrics cvssV3_1

{'score': 8.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L'}


Subscriptions

Triliumnext Trilium
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-18T15:33:41.704Z

Reserved: 2026-05-13T05:51:48.667Z

Link: CVE-2026-45733

cve-icon Vulnrichment

Updated: 2026-08-18T15:33:11.992Z

cve-icon NVD

Status : Received

Published: 2026-08-18T15:16:54.270

Modified: 2026-08-18T16:17:08.867

Link: CVE-2026-45733

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T17:45:06Z

Weaknesses
  • CWE-693

    Protection Mechanism Failure

  • CWE-79

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

  • CWE-83

    Improper Neutralization of Script in Attributes in a Web Page