Skip to main content

Trilium Notes CVE-2026-45733

| EUVDEUVD-2026-60956 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-08-18 security-advisories@github.com
8.3
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Recon
    Gain note-write access
  2. Delivery
    Set malicious #iconClass label value
  3. Exploit
    Payload stored in note database
  4. Install
    Victim opens quick search (Ctrl+J)
  5. C2
    Unescaped iconClass injected into class attribute
  6. Execute
    JavaScript executes in Electron renderer
  7. Impact
    Run OS commands via Node.js child_process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

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

Exploitation Conditions

The attacker must have sufficient access to create or edit a Trilium note and set a custom #iconClass label attribute - in collaborative or server deployments this may be any authenticated note-writer (functionally PR:L), while in single-user personal deployments it requires prior file-system or database access. The victim must then trigger the vulnerable rendering path by opening a new tab or invoking quick search (Ctrl+J), satisfying the UI:R requirement. The exploit achieves OS-level impact only in the Electron desktop client configuration where nodeIntegration is enabled and contextIsolation is disabled - confirmed as the default Trilium Electron configuration per the advisory. What limits exploitation: the UI:R barrier (victim must actively trigger the search widget), the need for prior note-write access, and the Electron desktop client requirement (pure web-server deployments without Electron nodeIntegration would contain the impact to browser-level XSS only). The vulnerability does NOT require any non-default configuration of Trilium beyond the standard Electron desktop install.

Impact

The vendor-assigned CVSS 8.3 (AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L) reflects the Scope:Changed consequence of Electron nodeIntegration - what would otherwise be a contained XSS becomes OS-level code execution. The PR:H designation warrants scrutiny: in Trilium, any authenticated user who can create or edit notes can set arbitrary #iconClass labels, which is a standard user operation rather than an administrative one - this suggests the real-world privilege bar may be closer to PR:L in collaborative or server deployments, making the effective risk higher than the score implies. No EPSS data was provided in the input. Neither CISA KEV listing nor public POC are present, so exploitation remains unconfirmed in the wild. However, the commit diff makes the injection point trivially identifiable, lowering the bar for independent discovery. For single-user personal deployments the risk is largely self-contained; for multi-user Trilium server instances with ETAPI or shared access, a malicious or compromised low-privilege user could laterally impact all connected users. The UI:R requirement (victim must open new tab or Ctrl+J) is a meaningful but easily satisfied barrier in normal usage patterns.

Exploit ScenarioDerived

An attacker with note-write access sets a note's #iconClass label to a value containing a JavaScript payload that breaks out of the HTML class attribute context (e.g., injecting event handlers or script-bearing markup). When the victim subsequently opens the Trilium quick search (Ctrl+J) or a new tab that triggers the autocomplete widget, the unescaped iconClass is rendered into the DOM, the payload executes in the Electron renderer process, and the attacker calls Node.js child_process.exec() to run arbitrary OS commands as the victim user. No public POC has been identified, but the commit diff exposes the exact injection points, making independent reproduction straightforward.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 18, 2026

Stored XSS in Trilium Notes via the #iconClass note label escalates to full operating-system code execution due to the Electron runtime's enabled nodeIntegration and disabled contextIsolation. An attacker with note-write access (CVSS PR:H) can set a crafted #iconClass attribute value that auto-executes when any victim opens a new tab or invokes quick search (Ctrl+J), granting arbitrary OS command execution as the victim user. Fixed in v0.103.0; no active exploitation (KEV) or public POC identified at time of analysis.

RemediationAI

Upgrade to Trilium Notes v0.103.0 or later, confirmed available at https://github.com/TriliumNext/Trilium/releases/tag/v0.103.0. This release applies escapeHtml() to the #iconClass value at both injection points (quick_search.ts and note_autocomplete.ts) as demonstrated in commit c06939448bcc2879fc3c4d328ff7dc63ed6b5009. If immediate upgrade is not possible in a multi-user deployment, restrict note-label editing rights to fully trusted users only, preventing untrusted users from setting arbitrary #iconClass values. As an additional measure, investigate whether contextIsolation can be re-enabled and nodeIntegration disabled in the Electron configuration for your build - this would reduce the XSS-to-RCE escalation risk, though it may break Trilium functionality and is not a substitute for patching. Single-user personal deployments with no external access face substantially lower risk but should still upgrade promptly.

Affected VersionsENISA

Trilium < 0.103.0

Affected Packages

euvd trilium fix: 0.103.0

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 Notes is an Electron-based, cross-platform hierarchical note-taking application. Notes support custom label attributes, including #iconClass, which controls the icon rendered in autocomplete and quick-search UI widgets. The function getNoteIcon() returns this label value without sanitization; it is then interpolated directly into HTML class attribute strings in apps/client/src/widgets/quick_search.ts (line ~297) and apps/client/src/services/note_autocomplete.ts (line ~343) via template literals, forming the classic CWE-79 Stored XSS pattern. Critically, Trilium's Electron configuration enables nodeIntegration and disables contextIsolation in the renderer process, meaning any JavaScript executing in the renderer has unfettered access to Node.js APIs (child_process, fs, etc.) - collapsing the typical XSS-to-RCE barrier entirely. The fix, committed in c06939448bcc2879fc3c4d328ff7dc63ed6b5009, wraps iconClass with escapeHtml() before insertion at both injection sites.

Know when the next one hits your stack

  • 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 (github) PRIMARY 8.3 HIGH
AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L
vuln.today AI 9.0 CRITICAL

PR:L because standard note-writers can set #iconClass; A:H because Electron nodeIntegration enables full OS command execution, including availability-impacting actions.

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

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
Low

Lifecycle Timeline

2
Patch available
Aug 18, 2026 - 16:17 EUVD
CVE Published
Aug 18, 2026 - 15:16 cve.org
HIGH 8.3

DescriptionCVE.org

Trilium Notes is a cross-platform, hierarchical note taking application focused on building large personal knowledge bases. Prior to 0.103.0, the #iconClass label value is returned raw by getNoteIcon() and inserted without HTML attribute encoding into class attributes in apps/client/src/widgets/quick_search.ts and apps/client/src/services/note_autocomplete.ts, allowing a stored payload to execute automatically when a victim opens a new tab or uses Ctrl+J and, because Electron enables nodeIntegration and disables contextIsolation, run operating-system commands as the victim. This issue is fixed in version 0.103.0.

Executive ViewAI

Why It Matters

Trilium Notes contains a critical vulnerability allowing attackers with note-editing access to inject malicious code that executes with victim system privileges when notes are opened. Organizations using Trilium for knowledge management face direct operating-system compromise risk, especially if note-editing permissions extend to untrusted or external users.

Business Impact: High
Compensating Controls

Vendor-released patch: v0.103.0 or later. Restrict note-write permissions to trusted internal users only until patching is complete.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Low
niche personal knowledge base app, limited enterprise footprint
Data Quality
6 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

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