PT-2026-82679 · Trilium · Trilium

·

CVE-2026-47727

·

Published

2026-08-27

·

Updated

2026-08-29

CVSS v4.0

8.6

High

VectorAV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Trilium versions prior to 0.104.0
Description The Safe import filter fails to neutralize the shareTemplate relation because it is not marked as dangerous. This allows an attacker to provide a malicious import archive that plants a server-side template. When the victim publishes the imported note, the public share renderer passes the raw bytes of the linked EJS (Embedded JavaScript templates) code note into the ejs.render() function, which compiles them within the server's Node process. Consequently, an unauthenticated request to the shared note executes the attacker's JavaScript, granting full access to require, process, the filesystem, and the network, leading to remote code execution.
Recommendations Update to version 0.104.0.

Exploit

Fix

RCE

Code Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-47727
GHSA-C26Q-6PWV-WF25

Affected Products

Trilium