CVE-2026-135686 Trilium through 0.107.0 SQL Injection via Sync Update Entity Name

Published Updated

Malicious Trilium sync partners can inject SQL via crafted entity names to steal sessions and tokens and write arbitrary database rows.

CVSS score

Critical

9.1/10

CVSS 4.0 · Scored by VulnCheck Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
Proof of concept
1 on GitHub, unverified
Fix
None listed
No fixed version published
Attack path
Over the internet
No login, no user action

What is CVE-2026-135686?

CVE-2026-135686 is a critical SQL injection vulnerability in TriliumNext Trilium, published on 24 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-89

How severe is CVE-2026-135686?

CVE-2026-135686 scores 9.1 out of 10 under CVSS 4.0, which is critical severity. It was scored by VulnCheck.

Attack vector
Network
Attack complexity
Low
Attack requirements
Present
Privileges required
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
None

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

Which versions are affected by CVE-2026-135686?

1 open source package ship an affected version, including triliumnext/trilium.

An affected version is exposed as installed. No special setting or call is needed.

PackageAffectedFixed in
triliumnext/trilium GitHub
pkg:github/triliumnext/trilium
All versions to 0.107.0None

How do I fix CVE-2026-135686?

No fix has been published for CVE-2026-135686 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-135686 being exploited?

There is no known exploitation of CVE-2026-135686 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-qr54-743q-fpq8.

Is CVE-2026-135686 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free