# CVE-2026-35593: Trilium Notes has Local File Inclusion via upload modified file API endpoint

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N`
- 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.62%, higher than 51% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-19T23:32:54.466Z
- Modified: 2026-07-24T09:10:00.153Z
- Weaknesses: CWE-22, CWE-73
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Trilium Notes is an open-source, cross-platform hierarchical note taking application for building large personal knowledge bases. Versions 0.102.1 and prior are vulnerable to Local File Inclusion, allowing an authenticated attacker to read sensitive arbitrary files from the server's filesystem. The uploadModifiedFileToAttachment function, which is called when a POST request is received to /api/attachments/{attachmentId}/upload-modified-file, replaces the content of the attachment with the content from another file (whose path is provided in filePath of Request body). After which the content of the attachment can be viewed at /api/attachments/{attachmentId}/download. This exposes sensitive system files such as SSH keys, credentials, configs, and OS files, potentially leading to remote code execution and compromise of co-hosted applications. This issue has been fixed in version 0.102.2.

(As written by CVE List.)

## Affected

- TriliumNext Trilium: < 0.102.2

## References

- <https://github.com/TriliumNext/Trilium/security/advisories/GHSA-hf4x-22rg-pjjp> (exploit)
- <https://github.com/TriliumNext/Trilium/releases/tag/v0.102.2>

## Sources

- CVE List: [CVE-2026-35593](https://www.cve.org/CVERecord?id=CVE-2026-35593), CVE Terms of Use, modified 2026-05-20
- NVD: [CVE-2026-35593](https://nvd.nist.gov/vuln/detail/CVE-2026-35593), Public domain, modified 2026-07-24

---

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