External risk intelligence

Trilium SQL Injection Via Sync Update Entity Name.

CVE advisorySeverity: CRITICAL (CVSS 9.1)

CVE-2026-135686

Trilium is a personal knowledge base application. While it features sync capabilities via API endpoints that could theoretically be exposed to the internet, such deployments are not the default or standard design pattern for this type of software, which is typically intended for local or private network use.

SQL Injection

Halo Surface Signal: 3 out of 5 — possibly public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A vulnerability in the Trilium application could allow unauthorized access to sensitive data by manipulating sync partner information. This SQL injection flaw in the updateNormalEntity function means that specially crafted inputs could lead to the exposure or modification of database records, including session tokens and user data. The main concern is confirming relevance and exposure to this specific technology.

  • Sync mechanism has a data access flaw.
  • Protects sensitive data like user tokens.
  • Verify if Trilium is in use.

Attack Path

How an attacker could exploit the issue

An attacker could exploit this vulnerability by establishing a connection to a vulnerable Trilium instance. By sending specially crafted data through synchronization update endpoints, an attacker can manipulate the database. This allows for the potential to steal sensitive information or modify data within the application.

  • No authentication or special access needed.
  • Manipulate sync endpoints with bad data.
  • Steal sensitive data or alter database.

Live Threat

Current exploitation, exposure, and threat context

When supported by the advisory, malicious sync partners could inject SQL commands through crafted entity names and column keys. This could allow attackers to access or modify sensitive database information, such as session tokens and user data.

  • Session tokens and user data at risk.
  • Malicious sync partners could inject SQL.
  • Unauthorized access to sensitive information.

Operational Fix

Recommended remediation, mitigation, and detection steps

Given that Trilium is primarily a personal knowledge base application, ownership likely resides with individual users or internal teams managing self-hosted instances, with infrastructure or platform teams responsible for the underlying systems. The immediate priority is to inventory all Trilium deployments, assess their exposure and criticality, and identify the accountable owner for each instance to plan remediation.

  • Confirm Trilium deployment locations and exposure.
  • Identify accountable owner for each instance.
  • Plan remediation based on criticality and risk.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is Trilium and why is it used?

Trilium is a self-hosted personal knowledge base application designed for note-taking and information organization. It allows users to build deep, hierarchical note structures and often includes synchronization features to keep data consistent across different devices or instances. Because it is personal software, it is typically deployed in private or local environments rather than as a public-facing service.

How does CVE-2026-135686 relate to SQL injection?

This vulnerability is an instance of CWE-89, or Improper Neutralization of Special Elements used in an SQL Command. In Trilium, the application fails to properly sanitize input when processing sync requests. An attacker can supply malicious entity names or column keys that get directly incorporated into database queries, allowing them to execute unauthorized commands.

What triggers this SQL injection flaw?

The vulnerability is triggered when an attacker interacts with specific API sync endpoints, such as those used for updating entity data. It does not require prior authentication. Simply sending crafted, malicious data payloads to these sync functions is enough to manipulate the database. Legitimate, non-malicious synchronization traffic does not trigger the bug.

Is my instance at risk according to Halo Surface Signal?

Halo Surface Signal notes that while Trilium includes API endpoints that could theoretically be reached over the internet, exposing these sync functions is not the standard or default configuration. You should prioritize assessing instances that have been explicitly configured to accept external sync connections, as these represent the most likely attack path.

How should I respond to this Trilium vulnerability?

First, conduct an inventory of all Trilium instances within your environment to confirm where the software is running. Once identified, locate the accountable owner for each deployment. Assess the exposure of these instances, particularly those reachable over a network, and plan to apply the necessary software updates to address the flaw in the sync logic.

References