Summary
Trilium by TriliumNext, through version 0.107.0, contains an SQL injection in updateNormalEntity() that a malicious sync partner can abuse. The source rates it critical, with a CVSS 4.0 score of 9.1.
What happened
The vulnerability (CVE-2026-135686, CWE-89) is in updateNormalEntity(). A malicious sync partner can inject SQL by supplying crafted entity names and column keys. According to the description, through data sent to /api/sync/changed or via PUT to /api/sync/update, an attacker can copy sessions, etapi_tokens and user_data into synced rows and write arbitrary rows to the database.
Why it matters
The described impact includes exposure of session data, API tokens and user data, as well as writing arbitrary rows to the database. The score is CVSS 4.0 9.1 (CNA: VulnCheck), with vector CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N. CISA's KEV catalog does not list this vulnerability as actively exploited, and the source gives no indication of exploitation.
Affected products and versions
Trilium (TriliumNext): versions <= 0.107.0 (last affected version stated: 0.107.0).
| Product | Versions | Fixed in |
|---|---|---|
| TriliumNext Trilium | <= 0.107.0 | — |
Action recommended by the source
The source does not state a fixed version or a specific mitigation. Its references include a code commit tagged as a patch in the project repository: https://github.com/TriliumNext/Trilium/commit/4ec30088fce936f2e87c0af6af3f89c47d331176. A VulnCheck advisory is also listed: https://www.vulncheck.com/advisories/trilium-through-0.107.0-sql-injection-via-sync-update-entity-name
Sources and references
- https://github.com/TriliumNext/Trilium/commit/4ec30088fce936f2e87c0af6af3f89c47d331176 — CVE Program
- https://github.com/TriliumNext/Trilium — CVE Program
- https://github.com/TriliumNext/Trilium/blob/v0.107.0/packages/trilium-core/src/services/sync_update.ts#L107 — CVE Program
- https://www.vulncheck.com/advisories/trilium-through-0.107.0-sql-injection-via-sync-update-entity-name — CVE Program
Weaknesses (CWE): CWE-89
Relevant change history
Published
Advisory published.