CVE-2026-47727

HIGH CVSS 4.0: 8.6 EPSS 0.50%
Updated Oct 14, 2026
Triliumnext
Parameter Value
CVSS 8.6 (HIGH)
Affected Versions before 0.104.0
Fixed In 0.104.0
Type CWE-1336 (Template Injection), CWE-94 (Code Injection)
Vendor Triliumnext
Public PoC No

Trilium is an open-source hierarchical note-taking application. In versions prior to 0.104.0, the default-on "Safe import" filter fails to neutralize the shareTemplate relation because that relation is not marked as dangerous, allowing an attacker-supplied import archive to plant a server-side template that leads to remote code execution. The relation is omitted from the built-in list of dangerous attributes, so unlike other code-loading relations it is not disabled on import, and when the victim later publishes the imported note the public share renderer feeds the linked EJS code note's raw bytes into ejs.render, which compiles them in the server's Node process.

An unauthenticated request to the shared note then executes the attacker's JavaScript with full access to require, process, the filesystem, and the network. This issue is fixed in version 0.104.0.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
Active
User action required

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Triliumnotes Trilium
cpe:2.3:a:triliumnotes:trilium:*:*:*:*:*:*:*:*
— 0.104.0

Related Vulnerabilities