# CVE-2026-53578: Trilium mindMap note import remote code execution

Source: https://junglewise.ai/threats/cve-2026-53578-trilium-mindmap-note-import-remote-code-execution  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-27. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-53578 · Severity: info · CVSS 9.3 · Published 2026-08-27

Trilium is an open-source hierarchical note-taking application that allows users to import notes from archive files. The application's "Safe import" filter, which is enabled by default, sanitizes HTML in text notes but fails to sanitize mindMap notes, allowing attackers to embed arbitrary HTML and JavaScript in imported malicious note archives. On the desktop client, the injected JavaScript runs with Node.js integration enabled, escalating to full remote code execution on the victim's machine.

Technologies: [TriliumNext Trilium](https://junglewise.ai/threats/technologies/trilium). Vendors: [TriliumNext](https://junglewise.ai/threats/vendors/triliumnext).

## Quick answers

**Is CVE-2026-53578 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-53578 being exploited in the wild.

**How severe is CVE-2026-53578?** Informational severity, with a CVSS score of 9.3, published 27 August 2026.

**Which products and versions are affected?** TriliumNext Trilium up to and including 0.103.0.

**Is there a fix for CVE-2026-53578?** A patch was published on 2026-06-01: Fix committed to repository; version 0.104.0 released Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-53578 attacked?** It is attacked with local access.

**Am I affected by CVE-2026-53578?** 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) to remote code execution chain caused by incomplete HTML sanitization in the Safe import filter. The mindMap note type is excluded from sanitization logic, and its JSON content is parsed directly and passed to the Mind Elixir library via the init() function without validation. The Mind Elixir library exposes a dangerouslySetInnerHTML property that assigns user-controlled content directly to a DOM node's innerHTML. The Electron desktop client has nodeIntegration enabled in the renderer process, allowing injected JavaScript to call child_process.exec() and execute arbitrary commands. An attacker can craft a malicious note archive containing a mindMap note with a dangerouslySetInnerHTML payload that executes system commands when the victim imports and opens the note. The vulnerability is fixed in version 0.104.0.

## Affected products

- TriliumNext Trilium up to and including 0.103.0

## Timeline

- 2026-08-20: disclosed
- 2026-06-01: patched: Fix committed to repository; version 0.104.0 released

## References

- [https://github.com/TriliumNext/Trilium/commit/15da3ff626c21fbadbc980ebb39e2f97085503a4](https://github.com/TriliumNext/Trilium/commit/15da3ff626c21fbadbc980ebb39e2f97085503a4)
- [https://github.com/TriliumNext/Trilium/security/advisories/GHSA-rj57-j38v-3577](https://github.com/TriliumNext/Trilium/security/advisories/GHSA-rj57-j38v-3577)

## Related threats

- [Trilium unauthenticated share-search authorization bypass](https://junglewise.ai/threats/cve-2026-77438-trilium-unauthenticated-share-search-authorization-bypass)
- [Trilium arbitrary file disclosure via file:// scheme in images](https://junglewise.ai/threats/cve-2026-53580-trilium-arbitrary-file-disclosure-via-file-scheme-in-images)
- [Trilium note import RCE via unsanitized book notes](https://junglewise.ai/threats/cve-2026-53579-trilium-note-import-rce-via-unsanitized-book-notes)
- [Trilium note import RCE via GeoMap title injection](https://junglewise.ai/threats/cve-2026-48996-trilium-note-import-rce-via-geomap-title-injection)
- [Trilium Notes stored XSS in icon class via unencoded getNoteIcon](https://junglewise.ai/threats/cve-2026-45733-trilium-notes-stored-xss-in-icon-class-via-unencoded-getnoteicon)
