Skip to content
DayZeroHub
Critical CVSS 9.1CVE-2026-135686

SQL injection in Trilium sync through version 0.107.0

TriliumNext Trilium

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

ProductVersionsFixed 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

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-89

Relevant change history

  1. Published

    Advisory published.

Summary written with AI assistance from the source data. See the sources and references for complete information. View sources