CVE-2026-135686 in Triliuminfo

Summary

by MITRE • 11/24/2026

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.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/24/2026

The vulnerability identified in Trilium Notes versions up through 0.107.0 represents a critical SQL injection flaw located within the updateNormalEntity function of the application's synchronization subsystem. This security defect arises from insufficient input validation and improper handling of user-supplied data during the entity update process, specifically when processing requests directed at the /api/sync/changed endpoint or PUT requests to /api/sync/update. The core technical failure involves the direct concatenation or unsafe interpolation of crafted entity names and column keys into SQL query structures without adequate sanitization or parameterized query usage. This architectural weakness allows an attacker who possesses a valid synchronization partner identity to manipulate the underlying database schema by injecting arbitrary SQL commands through specially constructed HTTP payloads.

From an operational perspective, this vulnerability grants malicious actors significant control over the Trilium Notes database structure and content. By exploiting the injection point in entity names and column keys, attackers can bypass standard application logic to execute unauthorized data manipulation operations. The most severe consequence of this flaw is the ability to exfiltrate sensitive authentication credentials stored within the database. Specifically, an attacker can leverage the SQL injection to copy session tokens, etapi_tokens which provide API access, and general user_data into rows that are synchronized with their controlled client instance. This effectively allows for complete account takeover without requiring password cracking or phishing, as the attacker gains direct access to the active sessions and API keys of legitimate users.

Furthermore, the vulnerability extends beyond data exfiltration to include arbitrary database row modification. The ability to write arbitrary database rows means that an attacker can alter application state, inject malicious notes, delete critical records, or potentially escalate privileges within the local instance if further vulnerabilities exist in conjunction with this SQL injection vector. This level of access compromises not only the confidentiality and integrity of user data but also the availability of the note-taking service by allowing destructive modifications to the database structure itself. The impact is particularly acute because synchronization implies trust between nodes, meaning that a compromised or malicious sync partner can silently propagate these attacks across all connected devices in real-time.

In terms of industry classification standards, this vulnerability aligns with CWE-89 Improper Neutralization of Special Elements used in an SQL Command, commonly known as SQL Injection. The attack vector leverages the application's synchronization mechanism to bypass network-based security controls that might otherwise filter malicious payloads targeting web entry points. From a tactical perspective related to MITRE ATT&CK frameworks, this exploit facilitates techniques associated with Credential Access such as Steal Web Session Cookie or API Key Theft by copying session and token data, as well as Data Exfiltration over an Alternative Network Channel via the sync protocol. It also touches upon Defense Evasion if attackers use these capabilities to modify logs or hide their presence within the database records.

Mitigation strategies must prioritize immediate patching of Trilium Notes to version 0.108.0 or later, where this input validation flaw has been addressed by implementing strict parameterized queries and rigorous schema validation for entity names and column keys during synchronization operations. Until patches are applied, administrators should restrict sync partner permissions to only trusted devices and disable public sharing features if applicable. Network-level monitoring can also help detect anomalous SQL syntax patterns in API traffic directed at the /api/sync endpoints, although application-layer fixes remain the primary defense against this specific code execution flaw. Regular auditing of database integrity and rotation of all active sessions and tokens is recommended for any instance suspected to have been exposed during the vulnerable period.

Responsible

VulnCheck

Reservation

11/24/2026

Disclosure

11/24/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!