Reference page — cumulative record through Monday, October 19, 2026 UTC. Reference pages update as the archive grows; only dated daily editions are immutable pages of record.
CVE-2026-47727
TriliumNext Trilium — Trilium: RCE via `shareTemplate` relation missing `isDangerous` flag — Safe import bypass leading to EJS SSTI (Incomplete Fix of CVE-2026-45668)
AV AC AT PR UI VC VI VA CVSS EPSS %ile KEV
N L N N A H H H 8.6 .0050 41.7 —
AFFECTED
Product Versions Fixed
Trilium 0.104.0 – —
TIMELINE
May 19 Reserved by GitHub_M
Aug 27 Published (CNA: GitHub_M)
Oct 14 EXPLOIT PUBLISHED — CVE-2026-47727 (TriliumNext Trilium). Public exploit reference added.
Description
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.
Lifecycle
Complete event history — 3 events, chronological
| Date | Event | Detail |
| May 19, 2026 | Reserved | Reserved by GitHub_M |
| August 27, 2026 | Published | Published (CNA: GitHub_M) |
| October 14, 2026 | EXPLOIT PUBLISHED | EXPLOIT PUBLISHED — CVE-2026-47727 (TriliumNext Trilium). Public exploit reference added. |
Affected
Affected products and packages — 1 row
| Vendor | Product / Package | Ecosystem | Version introduced | Fixed |
| TriliumNext | Trilium | — | 0.104.0 | — |
About this page
This is a reference page, not a dated page of record. It assembles the complete lifecycle of CVE-2026-47727 from the CVE Program record, NVD enrichment, the CISA KEV catalog, EPSS, and OSV advisories. The box score's numbers (CVSS, EPSS, KEV status) are current as of Monday, October 19, 2026 UTC and are re-derived as the archive grows; only dated daily editions are immutable pages of record. The authoritative source for this identifier is cve.org.