Skip to main content

Trilium CVE-2026-135686

| EUVDEUVD-2026-133579 CRITICAL
SQL Injection (CWE-89)
2026-11-24 VulnCheck GHSA-qr54-743q-fpq8
9.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Act as malicious or compromised sync partner
  2. Delivery
    Send sync update with crafted entity name and column keys
  3. Exploit
    Smuggle SQL through unbound identifiers in updateNormalEntity()
  4. Execution
    Copy sessions and etapi_tokens into synced rows
  5. Impact
    Exfiltrate tokens and write arbitrary database rows

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to be an established Trilium sync partner (a paired peer) or to have compromised one - this is the AT:P attack requirement and is the primary limiter: a Trilium instance with no sync peers, or with only trusted peers, is not reachable via this path. Given that precondition, no further special configuration is described: the attacker simply supplies crafted entity names and column keys in /api/sync/changed or PUT /api/sync/update data, which updateNormalEntity() interpolates into INSERT/UPSERT statements. There is no user-interaction requirement (UI:N). Affected versions are Trilium through 0.107.0; upgrading to the patched build is the fix, as the vendor remediation validates table/column identifiers against a plain-identifier regex before use.

Impact

This is a genuine high-priority issue, not a CVSS-inflated one, but its reachability is gated by a specific precondition that defenders must weigh. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H) shows network reach with low attack complexity and no required privileges, but the AT:P 'attack requirement' is the decisive signal: exploitation is performed by a 'malicious sync partner,' i.e. a peer that already has an established Trilium sync relationship, not an arbitrary anonymous internet attacker. Impact is high on both confidentiality and integrity - the flaw lets an attacker copy sessions, etapi_tokens and user_data into synced rows and write arbitrary database rows (CWE-89, SQL injection in updateNormalEntity()). The vuln.today decision label is act_now and the finding comes from VulnCheck with a vendor patch available, which supports prompt remediation. However, there is no CISA KEV listing and no EPSS value supplied, and no confirmed working exploit in the input, so there is no evidence of active or widespread exploitation yet - the signals point to a serious, patch-now bug whose real-world exposure is bounded by whoever already trusts the instance as a sync peer rather than mass internet exploitation. Note the PR:N/AT:P combination: the vendor models the sync-partner precondition as an attack requirement rather than a privilege; teams relying on PR alone could overstate how 'unauthenticated' this path really is.

Exploit ScenarioDerived

An attacker operating or having compromised a Trilium sync partner sends crafted data to /api/sync/changed or PUT /api/sync/update in which the entity name and/or column keys contain SQL fragments. Because updateNormalEntity() writes those identifiers directly into INSERT/UPSERT statement text instead of binding them, the attacker smuggles a SELECT that copies secret tables (sessions, etapi_tokens, user_data) into attacker-readable synced rows and writes arbitrary rows. No public exploit is identified at time of analysis, though the vendor patch ships test cases that demonstrate the identifier-smuggling technique.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 24, 2026

SQL injection in Trilium through 0.107.0 allows a malicious or compromised sync partner to smuggle SQL through crafted entity names and column keys in /api/sync/changed or PUT /api/sync/update, letting it copy sessions, etapi_tokens and user_data into synced rows and write arbitrary database rows. Reachability is gated: the attacker must be an established sync peer (AT:P), so instances with no sync peers or only trusted peers are not exposed through this path. The independent CVSS:3.1 assessment is AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N, while the published CVSS 4.0 score is 9.1; no public exploit code or CISA KEV entry was identified in the available data, but a vendor fix commit exists and vuln.today priority is act_now for sync-enabled deployments.

RemediationAI

Upgrade Trilium to a build containing commit 4ec30088fce936f2e87c0af6af3f89c47d331176; the available data does not name the exact patched release, so verify the release tag or notes include that commit before deploying. Patch availability is confirmed by the vendor fix commit and the VulnCheck advisory. Until upgraded, reduce reachability by disabling sync on instances that do not need it and by pairing only with trusted peers, because the flaw is only reachable from an established sync partner. Restricting network access to the sync API endpoints, for example by allowlisting known peer addresses, limits exposure but does not fix the injection and can break legitimate sync. No other workaround is described in the available sources.

Affected VersionsENISA

Trilium 0 ≤0.107.0

Affected Packages

euvd trilium no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Trilium's sync subsystem accepts entity change records from paired peers, and updateNormalEntity() passes peer-controlled entityName and column keys into SqlService.insert()/upsert(). Those identifiers are concatenated into INSERT/UPSERT statement text rather than bound as parameters, a CWE-89 identifier-injection variant. The upstream tests show the exploit shape: an entity name such as options (name, value, isSynced, utcDateModified) SELECT ... FROM options WHERE name = ? /*, or a column key carrying a closing parenthesis and SELECT, can cause the server to write data from options into attacker-chosen rows. The fix adds a ^[A-Za-z_][A-Za-z0-9_]*$ SQL_IDENTIFIER check in sql.ts (assertIdentifiers on table name, primary key and keys) and an isEntityName() allowlist in entity_constructor.ts, so non-identifier table or column names are refused. The AT:P attack requirement reflects that the peer must already be paired or trusted by the instance; no user interaction is required. The affected code path is packages/trilium-core/src/services/sync_update.ts around line 107.

Know when Trilium gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 9.1 CRITICAL
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
vuln.today AI 7.4 HIGH

Network-reachable sync endpoint with high confidentiality and integrity impact; AC:H and PR:N reflect that the attacker must already be an established sync partner rather than hold server privileges.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Trilium, a note-taking platform, contains a critical SQL injection vulnerability that enables a malicious sync peer to exfiltrate sensitive data such as sessions, API tokens, and user information. Organizations using sync features are at risk of unauthorized access and data theft, which could lead to broader credential compromise and data breaches. Leadership should prioritize remediation for all sync-enabled instances to protect sensitive information and maintain trust.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 60% exploitable
Prevalence
Low
niche self-hosted personal note-taking app, hobbyist/individual footprint
Social Media
3
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

CVE-2025-68621 HIGH POC
7.4 Feb 06

Trilium Notes is an open-source, cross-platform hierarchical note taking application with focus on building large person

CVE-2022-2290 MEDIUM POC
6.1 Jul 03

Cross-site Scripting (XSS) - Reflected in GitHub repository zadam/trilium prior to 0.52.4, 0.53.1-beta. Rated medium sev

CVE-2023-3067 MEDIUM POC
5.4 Jun 02

Cross-site Scripting (XSS) - Stored in GitHub repository zadam/trilium prior to 0.59.4. Rated medium severity (CVSS 5.4)

CVE-2022-2365 MEDIUM POC
5.4 Jul 10

Cross-site Scripting (XSS) - Stored in GitHub repository zadam/trilium prior to 0.53.3. Rated medium severity (CVSS 5.4)

CVE-2026-53579 CRITICAL
9.3 Aug 27

Stored cross-site scripting escalating to remote code execution affects TriliumNext Trilium versions up to and including

CVE-2026-53578 CRITICAL
9.3 Aug 27

Stored cross-site scripting escalating to remote code execution affects TriliumNext Trilium through version 0.103.0, whe

CVE-2026-48996 CRITICAL
9.3 Aug 27

Stored cross-site scripting escalating to remote code execution affects TriliumNext Trilium through version 0.103.0, whe

CVE-2026-45668 CRITICAL
9.3 May 29

Remote code execution in TriliumNext Trilium Notes desktop client prior to 0.102.2 allows attackers to achieve arbitrary

CVE-2026-47727 HIGH
8.6 Aug 27

Remote code execution in Trilium versions prior to 0.104.0 is achievable by exploiting a bypass in the application's Saf

CVE-2026-39310 HIGH
8.6 May 20

Authentication bypass in Trilium Notes Desktop (Electron build) versions 0.102.1 and earlier allows remote unauthenticat

CVE-2026-53580 HIGH
8.1 Aug 27

Arbitrary local file disclosure and denial-of-service exist in Trilium's automatic image-download feature, affecting all

CVE-2026-77438 HIGH
7.5 Aug 27

Unauthenticated content exfiltration in Trilium up to 0.103.0 is possible through the public share-search endpoint, whic

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy