CVE-2026-48996 Trilium: Malicious import with GeoMap marker title XSS leads to RCE on the desktop client

Critical 9.3 Published Updated

Attackers can achieve remote code execution on the Trilium desktop client by injecting malicious scripts via unsanitized GeoMap marker titles in imported archives.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-48996?

CVE-2026-48996 is a critical cross-site scripting vulnerability in TriliumNext Trilium, published on 27 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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 does not sanitize note titles, and the GeoMap note view interpolates a marker note's title into raw HTML that is rendered as innerHTML, allowing an attacker-supplied import archive to inject script that runs when the map is displayed. Because Safe import neutralizes scripts but never escapes titles, a note whose title contains an HTML event-handler payload survives the import and executes as soon as the victim opens the GeoMap that renders its marker. 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-94, CWE-79

Which versions are affected by CVE-2026-48996?

It affects 1 product.

Products include Triliumnotes Trilium.

How do I fix CVE-2026-48996?

No fix has been published for CVE-2026-48996 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-48996 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-48996 exists.

Sources

Also known as GHSA-7qfw-c9gj-2xq2.

Is CVE-2026-48996 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free