CVE-2026-135686: Trilium SQL Injection
Published 2026-11-24 · Updated 2026-12-04 · Source disclosure@vulncheck.com
Not known to be exploited · high severity — apply the vendor fix or mitigation in your next patch cycle.
What to do
- The advisory lists versions through 0.107.0 as affected and does not name a fixed release. Check the references below for a newer version of Trilium or a vendor mitigation.
- Until it is patched, do not leave Trilium reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
- Put WAF rules in front of the affected parameters, and make sure the application's database account holds only the privileges it needs.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Trilium | ≤ 0.107.0 | Not stated in the advisory |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is high, so exploitation depends on conditions the attacker does not control. The impact on confidentiality and integrity is rated high.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | High | Success depends on conditions outside the attacker's control. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | None | No action by a victim is needed. |
| Confidentiality | High | Total loss of confidentiality. |
| Integrity | High | Total loss of integrity. |
| Availability | None | No effect on availability. |
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness: SQL Injection
Attacker-controlled input changes the structure of a database query, which can expose, modify or delete data and sometimes leads to code execution on the database host.
Classified as CWE-89.
Description
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.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/TriliumNext/Trilium/commit/4ec30088fce936f2e87c0af6af3f89c47d331176
- Advisoryhttps://www.vulncheck.com/advisories/trilium-through-0.107.0-sql-injection-via-sync-update-entity-name
- Referencehttps://github.com/TriliumNext/Trilium
- Referencehttps://github.com/TriliumNext/Trilium/blob/v0.107.0/packages/trilium-core/src/services/sync_update.ts#L107