CVE-2026-53579

Trilium: Note Import to RCE via Book Note

Published Aug 27, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
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 sanitizes HTML only for text notes and excludes the book note type, whose content is stored without sanitization and later rendered as HTML, allowing an attacker-supplied import archive to embed a payload that executes as script. A book note's content is routed through the same rendering path as text notes and injected into the page with jQuery's html method when the note is shown as a grid-view preview card, so a malicious note survives Safe import and runs as soon as the victim opens the containing note. 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.

Analysis

AI-generated

Technical impact

Safe import in Trilium sanitizes only text notes while book notes are stored without filtering and later rendered as HTML via jQuery’s html method. This allows an attacker to create a crafted import archive containing JavaScript that will execute when the victim opens the containing note. The malicious script runs inside the Electron renderer where Node integration is active, elevating the attack from a cross‑site scripting flaw to full remote code execution on the host machine.

Affected Systems

TriliumNext Trilium versions up to and including 0.103.0 are vulnerable; the issue is fixed in version 0.104.0.

Risk and Exploitability

The CVSS score of 9.3 indicates critical severity. EPSS data is not available, and the vulnerability is not listed in CISA KEV. The likely attack vector requires the victim to open a maliciously crafted import file containing a book note with embedded JavaScript. Once opened, the payload runs with user privileges in the Electron renderer, providing the attacker full control of the victim’s machine.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Trilium to version 0.104.0 or later to eliminate the vulnerability.
  • Restrict or disable the import of book notes from untrusted archives by configuring import settings or applying custom sanitization logic, ensuring only trusted content is loaded.
  • If possible, run the desktop client with Node integration disabled to reduce the impact of any remaining cross‑site scripting vulnerabilities.

Generated by OpenCVE AI on August 28, 2026 at 06:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Triliumnotes
Triliumnotes trilium
CPEs cpe:2.3:a:triliumnotes:trilium:*:*:*:*:*:*:*:*
Vendors & Products Triliumnotes
Triliumnotes trilium
Metrics cvssV3_1

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

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', '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 is an open-source hierarchical note-taking application. In versions up to and including 0.103.0, the default-on "Safe import" filter sanitizes HTML only for text notes and excludes the book note type, whose content is stored without sanitization and later rendered as HTML, allowing an attacker-supplied import archive to embed a payload that executes as script. A book note's content is routed through the same rendering path as text notes and injected into the page with jQuery's html method when the note is shown as a grid-view preview card, so a malicious note survives Safe import and runs as soon as the victim opens the containing note. 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: Note Import to RCE via Book Note
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'}

Weaknesses
  • CWE-79

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

  • CWE-94

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 28, 2026, 3:58 PM
Reserved
Jun 9, 2026, 7:11 PM
Status
Analyzed
Published
Aug 27, 2026, 8:17 PM
Modified
Oct 14, 2026, 3:46 PM