Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAct as malicious or compromised sync partner
-
DeliverySend sync update with crafted entity name and column keys
-
ExploitSmuggle SQL through unbound identifiers in updateNormalEntity()
-
ExecutionCopy sessions and etapi_tokens into synced rows
-
ImpactExfiltrate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Trilium Notes is an open-source, cross-platform hierarchical note taking application with focus on building large person
Cross-site Scripting (XSS) - Reflected in GitHub repository zadam/trilium prior to 0.52.4, 0.53.1-beta. Rated medium sev
Cross-site Scripting (XSS) - Stored in GitHub repository zadam/trilium prior to 0.59.4. Rated medium severity (CVSS 5.4)
Cross-site Scripting (XSS) - Stored in GitHub repository zadam/trilium prior to 0.53.3. Rated medium severity (CVSS 5.4)
Stored cross-site scripting escalating to remote code execution affects TriliumNext Trilium versions up to and including
Stored cross-site scripting escalating to remote code execution affects TriliumNext Trilium through version 0.103.0, whe
Stored cross-site scripting escalating to remote code execution affects TriliumNext Trilium through version 0.103.0, whe
Remote code execution in TriliumNext Trilium Notes desktop client prior to 0.102.2 allows attackers to achieve arbitrary
Remote code execution in Trilium versions prior to 0.104.0 is achievable by exploiting a bypass in the application's Saf
Authentication bypass in Trilium Notes Desktop (Electron build) versions 0.102.1 and earlier allows remote unauthenticat
Arbitrary local file disclosure and denial-of-service exist in Trilium's automatic image-download feature, affecting all
Unauthenticated content exfiltration in Trilium up to 0.103.0 is possible through the public share-search endpoint, whic
EUVD-2026-133579
GHSA-qr54-743q-fpq8
NVD
CVE.org
EPSS
Exploit-DB