# CVE-2026-53578: Trilium: Note Import to RCE via Mind Elixir dangerouslySetInnerHtml

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 20% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-27T19:21:21.331Z
- Modified: 2026-10-14T15:49:44.417Z
- Weaknesses: CWE-79, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Trilium is an open-source hierarchical note-taking application. In versions up to and including 0.103.0, the default-on "Safe import" filter sanitizes HTML only for text notes and excludes the mindMap note type, whose JSON content is stored without sanitization, allowing an attacker-supplied import archive to embed a payload that renders as arbitrary HTML. A mind map node can carry a dangerouslySetInnerHTML property that the Mind Elixir library assigns directly to a node's innerHTML, so a malicious note survives Safe import and executes script as soon as the victim opens the imported mind map. On the desktop client the Electron renderer runs with Node integration enabled, so the injected JavaScript escalates from cross-site scripting to full remote code execution on the victim's machine. This issue is fixed in version 0.104.0.

(As written by CVE List.)

## Affected

- TriliumNext Trilium: < 0.104.0
- triliumnotes trilium: before 0.104.0

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/TriliumNext/Trilium/security/advisories/GHSA-rj57-j38v-3577> (exploit, vendor-advisory)
- <https://github.com/TriliumNext/Trilium/commit/15da3ff626c21fbadbc980ebb39e2f97085503a4> (patch)

## Sources

- CVE List: [CVE-2026-53578](https://www.cve.org/CVERecord?id=CVE-2026-53578), CVE Terms of Use, modified 2026-08-31
- NVD: [CVE-2026-53578](https://nvd.nist.gov/vuln/detail/CVE-2026-53578), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2026-53578 · Whole record: https://cve.day/CVE-2026-53578.json · Rebuilt by cve.day 2026-11-25T22:59:35.527Z
