SecurityContext

CVE-2026-47727: Trilium - Remote Code Execution

  • Cve: CVE-2026-47727
  • Name: Trilium - Remote Code Execution
  • 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.
  • Impact: Unauthenticated attackers can execute arbitrary code on the server, leading to full system compromise.
  • Remediation: Update to version 0.104.0 or later.
  • Vulnerability type: template_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.00503
  • Epss percentile: 0.43856
  • Assignee: [email protected]
  • Published at: 2026-08-27T20:17:44Z
  • Age in days: 89
  • Modified at: 2026-10-14T15:52:52Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-47727
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

Public exploits

UrlSourceAdded date
https://github.com/TriliumNext/Trilium/security/advisories/GHSA-c26q-6pwv-wf25nvd2026-08-27

References

UrlSourceTags
https://github.com/TriliumNext/Trilium/commit/0db3d4403ab26de13d19a8739f014ee72b716239nvdPatch
https://github.com/TriliumNext/Trilium/security/advisories/GHSA-c26q-6pwv-wf25nvdExploit, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
triliumnotes:trilium< 0.104.0nonvd/v1/products/triliumnotes/trilium

Projects

RepositoryLink kindsIndexedUrl
TriliumNext/Triliumcommit, fix, security_advisoryyes/v1/repositories/TriliumNext/Trilium

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-08-27
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts