CVE-2026-135686
Trilium through 0.107.0 contains an sql injection vulnerability in updateNormalEntity() that allows malicious sync partners to inject SQL by supplying crafted …
Impact
Trilium through 0.107.0 contains an sql injection vulnerability in updateNormalEntity() that allows malicious sync partners to inject SQL by supplying crafted entity names and column keys. Attackers can abuse /api/sync/changed or PUT /api/sync/update data to copy sessions, etapi_tokens and user_data into synced rows and write arbitrary database rows.
An attacker can exploit this over the network, without logging in, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data being read, high risk of data or systems being changed.
Affected products (TriliumNext)
| Product | Affected versions |
|---|---|
| Trilium | through 0.107.0 Version 0 ≤0.107.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/TriliumNext/Trilium/commit/4ec30088fce936f2e87c0af6af3f89c47d331176
- https://github.com/TriliumNext/Trilium
- https://github.com/TriliumNext/Trilium/blob/v0.107.0/packages/trilium-core/src/services/sync_update.ts#L107
- https://www.vulncheck.com/advisories/trilium-through-0.107.0-sql-injection-via-sync-update-entity-name
- https://github.com/advisories/GHSA-qr54-743q-fpq8
- https://nvd.nist.gov/vuln/detail/CVE-2026-135686