
Critical SQL Injection Flaw in Trilium Notes App Exposes User Data to Sync Partners
A critical SQL injection vulnerability, designated CVE-2026-135686, has been identified in Trilium, an open-source knowledge management application. The flaw affects versions up to and including 0.107.0 and resides in the updateNormalEntity() function. Attackers can exploit this vulnerability by supplying crafted entity names and column keys through the /api/sync/changed or PUT /api/sync/update endpoints. This allows malicious sync partners to inject SQL commands, potentially copying sensitive data such as sessions, API tokens, and user data into synced rows or writing arbitrary database entries. The vulnerability carries a CVSS 4.0 score of 9.1, indicating critical severity, and requires no user interaction or special privileges to exploit. A patch has been released by the developers to address the issue.