# CVE-2026-48996: Trilium note import RCE via GeoMap title injection

Source: https://junglewise.ai/threats/cve-2026-48996-trilium-note-import-rce-via-geomap-title-injection  
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-48996 · Severity: info · CVSS 9.3 · Published 2026-08-27

Trilium is an open-source note-taking application that allows users to organize and view notes hierarchically. The application's "Safe import" feature fails to sanitize note titles before rendering them in GeoMap views, allowing an attacker to inject malicious HTML/JavaScript through a crafted import file. On the desktop client, this code executes with full system privileges, enabling remote code execution on the user's machine.

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

## Quick answers

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

**How severe is CVE-2026-48996?** 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-48996?** A patch was published on 2026-08-20: Fixed in version 0.104.0 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-48996 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2026-48996?** 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

This vulnerability is a stored cross-site scripting (XSS) that escalates to remote code execution (RCE) on the Electron desktop client. The root cause is that the GeoMap widget's buildIcon() function interpolates note titles directly as raw HTML via innerHTML without sanitization, even though the "Safe import" filter is enabled. The attack vector requires user interaction: an attacker must trick the victim into importing a malicious .zip archive containing a GeoMap note with an HTML event-handler payload (e.g., &lt;img onerror="..."&gt;) in its title. The XSS fires when the map renders the marker icon, and because the Electron renderer has nodeIntegration enabled, the injected JavaScript can call Node.js APIs like child_process.exec() to achieve full RCE. The vulnerability was patched in version 0.104.0 by properly escaping title values before rendering.

## Affected products

- TriliumNext Trilium up to and including 0.103.0

## Timeline

- 2026-08-20: disclosed
- 2026-08-27: advisory: CVE-2026-48996 published
- 2026-08-20: patched: Fixed in version 0.104.0

## References

- [https://github.com/TriliumNext/Trilium/commit/5245ad70f6ecc54e0309fb83e596f15fe5dc5bf6](https://github.com/TriliumNext/Trilium/commit/5245ad70f6ecc54e0309fb83e596f15fe5dc5bf6)
- [https://github.com/TriliumNext/Trilium/security/advisories/GHSA-7qfw-c9gj-2xq2](https://github.com/TriliumNext/Trilium/security/advisories/GHSA-7qfw-c9gj-2xq2)

## 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 mindMap note import remote code execution](https://junglewise.ai/threats/cve-2026-53578-trilium-mindmap-note-import-remote-code-execution)
- [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)
