ZeroHour

CVE-2026-53578

moderate

Stored XSS-to-RCE in Trilium Notes via malicious mind map import

CVSS 4.0
9.3 critical
EPSS
<1%p12
Published
()
Modified
AI analysis

Trilium, an open-source hierarchical note-taking application, fails to sanitize the mindMap note type in its default-on "Safe import" filter, which sanitizes HTML only for text notes; mind map JSON content is stored as-is. A node in an attacker-supplied import archive can carry a dangerouslySetInnerHTML property that the bundled Mind Elixir library assigns directly to the node's innerHTML, so injected script executes as soon as the victim opens the imported mind map. On the desktop client, the Electron renderer runs with Node integration enabled, letting the attacker escalate from stored cross-site scripting to full remote code execution on the victim's machine, while on server deployments the impact is arbitrary script execution in the victim's session. All Trilium users up to and including 0.103.0 who import note archives from untrusted sources are affected. No public proof-of-concept or in-the-wild exploitation is known, and EPSS estimates the 30-day exploitation probability at roughly 0.2%.

What to do: Upgrade all Trilium desktop and server instances to version 0.104.0 or later. Until upgraded, only import note archives from trusted sources and treat opening imported mind map notes as risky, since desktop users face code execution while server users face script execution in their authenticated session.

Affected
Trilium Notes (open-source project) Triliumup to and including 0.103.0 (fixed in 0.104.0)
Estimated exposure
moderateestimated tens of thousands of users, including a few thousand internet-exposed Trilium server instances (estimate, not a measured count) — Trilium is a self-hosted desktop/server note-taking app with no central install telemetry; its popularity (tens of thousands of GitHub stars) and public scans showing only a few thousand exposed Trilium servers suggest the plausible…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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 mindMap note type, whose JSON content is stored without sanitization, allowing an attacker-supplied import archive to embed a payload that renders as arbitrary HTML. A mind map node can carry a dangerouslySetInnerHTML property that the Mind Elixir library assigns directly to a node's innerHTML, so a malicious note survives Safe import and executes script as soon as the victim opens the imported mind map. 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.

Weakness
CWE-79, CWE-94
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.