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

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.

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

Remediation

No vendor fix or workaround currently provided.

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

History

Fri, 28 Aug 2026 06:45: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 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'}


Subscriptions

Triliumnext Trilium
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-27T19:33:24.490Z

Reserved: 2026-06-09T19:11:53.484Z

Link: CVE-2026-53579

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

Modified: 2026-08-27T20:17:49.013

Link: CVE-2026-53579

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T06:45:04Z

Weaknesses
  • CWE-79

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

  • CWE-94

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