CVE-2026-45733: Trilium Notes stored XSS in icon class via unencoded getNoteIcon

CVE-2026-45733 · Severity: high · CVSS 8.3 · Published 2026-08-18

Trilium Notes is a cross-platform note-taking application. A flaw allows attackers to store malicious code in note icon labels that executes automatically when a user opens the quick search feature (Ctrl+J) or a new tab. Because the Electron desktop version does not isolate context and enables node integration, an attacker can execute arbitrary operating system commands with the victim's privileges.

Technologies: TriliumNext Trilium. Vendors: TriliumNext.

Quick answers

Is CVE-2026-45733 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-45733 being exploited in the wild.
How severe is CVE-2026-45733?
High severity, with a CVSS score of 8.3, published 18 August 2026.
Which products and versions are affected?
TriliumNext Trilium prior to 0.103.0.
Is there a fix for CVE-2026-45733?
A patch was published on 2026-05-13: Fixed in version 0.103.0 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-45733 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-45733?
Check whether you run TriliumNext Trilium at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The vulnerability is a stored cross-site scripting (XSS) flaw in the getNoteIcon() function. The #iconClass label value is inserted without HTML attribute encoding into class attributes in quick_search.ts and note_autocomplete.ts. An attacker can inject a malicious payload into a note's icon class that will execute when the victim uses the quick search feature (Ctrl+J) or opens a new tab. The underlying issue is that Electron enables nodeIntegration and disables contextIsolation, allowing JavaScript to access Node.js APIs and execute system commands. No user interaction beyond opening the application is required. The vulnerability is fixed in version 0.103.0 by sanitizing icon class values.

Affected products

  • TriliumNext Trilium prior to 0.103.0

Timeline

  • 2026-08-18: disclosed
  • 2026-05-13: patched: Fixed in version 0.103.0

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.