Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-47727— Trilium: RCE via `shareTemplate` relation missing `isDangerous` flag — Safe import bypass leading to EJS SSTI (Incomplete Fix of CVE-2026-45668)

Quick assessment

Affected
TriliumNext Trilium
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Trilium Next Trilium Notes是Trilium Next组织的一款支持文档管理与项目管理的工具。 Trilium Next Trilium Notes 0.104.0之前版本存在代码注入漏洞,该漏洞源于默认的“Safe import”过滤器未能中和shareTemplate关系,该关系未标记为危险,允许攻击者提供的导入存档植入服务器端模板,导致远程代码执行。

CVSS 8.6 · High EPSS 0.50% · P42

Affected Version Matrix 1

VendorProduct Version RangeStatus
TriliumNext Trilium 0.104.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-47727

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Trilium: RCE via `shareTemplate` relation missing `isDangerous` flag — Safe import bypass leading to EJS SSTI (Incomplete Fix of CVE-2026-45668)
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Trilium Next Trilium Notes 代码注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Trilium Next Trilium Notes是Trilium Next组织的一款支持文档管理与项目管理的工具。 Trilium Next Trilium Notes 0.104.0之前版本存在代码注入漏洞,该漏洞源于默认的“Safe import”过滤器未能中和shareTemplate关系,该关系未标记为危险,允许攻击者提供的导入存档植入服务器端模板,导致远程代码执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
TriliumNext Trilium 0.104.0 -

II. Public POCs for CVE-2026-47727

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-47727

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-47727 (1)

Vendor Advisories for CVE-2026-47727 (1)

Same Patch Batch · TriliumNext · 2026-08-27 · 6 CVEs total

CVE-2026-53578 9.3 CRITICAL Trilium: Note Import to RCE via Mind Elixir dangerouslySetInnerHtml
CVE-2026-53579 9.3 CRITICAL Trilium: Note Import to RCE via Book Note
CVE-2026-48996 9.3 CRITICAL Trilium: Malicious import with GeoMap marker title XSS leads to RCE on the desktop client
CVE-2026-53580 8.1 HIGH Trilium arbitrary file read and denial of service via file:// URLs in the automatic image-
CVE-2026-77438 7.5 HIGH Trilium unauthenticated share-search discloses password-protected and hidden shared notes

IV. Related Vulnerabilities

V. Comments for CVE-2026-47727

No comments yet


Leave a comment