Skip to main content

Trilium Notes CVE-2026-39309

MEDIUM
Authentication Bypass by Spoofing (CWE-290)
2026-05-20 security-advisories@github.com
5.5
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Recon
    Gain local code execution on target macOS host
  2. Delivery
    Locate installed Trilium Notes binary (v0.102.1 or prior)
  3. Exploit
    Invoke Trilium binary via RunAsNode fuse with -e flag
  4. Install
    Execute malicious Node.js subprocess under Trilium's macOS process identity
  5. C2
    Trigger TCC permission prompts appearing to originate from Trilium Notes
  6. Execute
    Victim approves spoofed prompt
  7. Impact
    Access TCC-protected resources (camera, microphone, ~/Documents, ~/Downloads)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Anti-spoofing controls
MITRE ATT&CK

1 technique across 1 tactic: Defense Evasion

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

Exploitation Conditions

Local code execution on the target macOS host is required - the CVSS AV:L vector confirms this is not remotely exploitable over a network. Trilium Notes Electron desktop application version 0.102.1 or earlier must be installed on the same host; the RunAsNode fuse is enabled by default in these versions. User interaction is required (UI:R): the victim must actively click 'Allow' on the spoofed TCC permission prompt, making this a social-engineering-dependent attack - the attacker cannot silently bypass TCC without victim interaction. The attack is strictly limited to macOS because TCC is an Apple-specific permission framework; Linux and Windows Electron deployments of Trilium are not affected by this specific issue. No elevated OS privileges are required to invoke the RunAsNode fuse (PR:N). The attack is limited in scope to confidentiality - no integrity or availability impact is possible through this vector alone.

Impact

The CVSS 5.5 Medium score reflects the constrained attack surface accurately: AV:L requires the attacker to already have local code execution on the macOS host, AC:L indicates no special timing or race conditions, PR:N means no elevated OS privileges are needed to abuse the RunAsNode fuse, and UI:R acknowledges that the victim must actively approve the spoofed TCC prompt for the attack to succeed. The S:U (unchanged scope) and I:N/A:N indicators confirm the impact is limited to confidentiality - specifically the exfiltration of TCC-gated data and sensor streams. No EPSS score was included in the provided data, so exploitation probability cannot be quantified numerically. The vulnerability is not listed in the CISA KEV catalog and no public POC has been identified, placing it in a lower operational priority tier for most enterprise defenders. However, the attack's effectiveness is amplified by psychology: macOS users who have previously granted Trilium permissions, or who expect a note-taking app to request microphone access for voice notes, are plausible targets for prompt approval without suspicion. The real-world risk is moderate and scenario-dependent - highest on shared or multi-user macOS systems, or in environments where Trilium is deployed to non-technical users who are less likely to scrutinize permission prompts.

Exploit ScenarioDerived

An attacker who has already achieved local code execution on a macOS host - via malware, a malicious script, or physical access - locates an installed Trilium Notes version 0.102.1 or earlier. Using the enabled RunAsNode fuse, the attacker invokes the Trilium binary with the -e flag to spawn a subprocess that requests TCC access to the microphone and ~/Documents folder; macOS presents these prompts attributed to 'Trilium Notes' with its app icon. The victim, recognizing Trilium as a trusted application they use daily, clicks 'Allow', at which point the attacker's subprocess gains persistent read access to those TCC-protected resources without ever triggering an alert about unknown or malicious software.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 20, 2026

Trilium Notes Electron desktop application on macOS, versions 0.102.1 and prior, permits local attackers to spoof macOS Transparency, Consent, and Control (TCC) permission prompts by exploiting the enabled RunAsNode Electron fuse, which allows arbitrary Node.js code to execute under Trilium's trusted identity. An attacker with local code execution can spawn a subprocess inheriting Trilium's macOS identity and then request TCC-protected resources - camera, microphone, screen, ~/Documents, ~/Downloads - causing the system prompt to appear as if the legitimate Trilium Notes app is requesting access, not the attacker. No public exploit code has been identified at time of analysis, and this vulnerability is not listed in the CISA KEV catalog; however, the social-engineering angle makes it particularly dangerous for macOS users who extend implicit trust to Trilium. Version 0.102.2 resolves the issue by disabling the RunAsNode fuse.

RemediationAI

Upgrade Trilium Notes to version 0.102.2 immediately. The v0.102.2 release explicitly adds Electron fuses to harden the desktop application and improves application integrity checks, directly disabling the RunAsNode capability that enables this attack. The vendor release notes describe this as an important security fix and strongly encourage immediate update for all users. The release is available at https://github.com/TriliumNext/Trilium/releases/tag/v0.102.2 and the advisory is at https://github.com/TriliumNext/Trilium/security/advisories/GHSA-66pm-8hvq-2wwx. For environments where immediate upgrade is not feasible, a compensating control is to revoke any TCC permissions Trilium Notes has already been granted - via System Settings > Privacy & Security - so that even a successful prompt-spoof attack cannot access resources Trilium was never authorized to use. This workaround is imperfect because it may degrade legitimate Trilium functionality and does not prevent the attacker from triggering new prompts; it merely reduces the blast radius by ensuring no pre-authorized grants exist.

Affected ProductsAI

Trilium Notes Electron desktop application versions 0.102.1 and all prior releases are affected on macOS where the RunAsNode Electron fuse is enabled by default. The vulnerability is specific to the desktop (Electron) distribution; server-only or web-only deployments are not affected by this TCC bypass since TCC is a macOS-exclusive permission framework. The vendor advisory is published at https://github.com/TriliumNext/Trilium/security/advisories/GHSA-66pm-8hvq-2wwx and the patched release is documented at https://github.com/TriliumNext/Trilium/releases/tag/v0.102.2. No explicit CPE string was provided in the NVD data at time of analysis.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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 desktop application, meaning it wraps a Chromium browser and a Node.js runtime into a native app bundle. Electron exposes a 'fuses' system - compile-time or post-build flags that toggle runtime capabilities. The RunAsNode fuse, when enabled, allows the Electron binary to be invoked as a generic Node.js interpreter via the ELECTRON_RUN_AS_NODE environment variable or the -e flag, executing arbitrary JavaScript outside the app's intended context but still under the app bundle's macOS process identity and code-signing entitlements. macOS TCC (Transparency, Consent, and Control) grants or denies access to sensitive resources based on the requesting process's bundle identity, not the content of the code it runs. CWE-290 (Authentication Bypass by Spoofing) captures the root cause: the attacker presents a false identity - Trilium Notes - to the macOS security subsystem in order to bypass the trust decision that TCC is supposed to enforce. The affected CPE is the Trilium Notes Electron desktop application up to and including version 0.102.1 on macOS.

Know when Node.js 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 (github) PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Primary rating from Vendor (github) · only source for this CVE.

CVSS VectorVendor: github

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

Trilium Notes is a cross-platform, hierarchical note taking application focused on building large personal knowledge bases. In versions 0.102.1 and prior, the Electron configuration is vulnerable to TCC Bypass via Prompt Spoofing, allowing local attackers to trigger misleading macOS permission prompts by running malicious code under the identity of the trusted app. The root cause is that the RunAsNode fuse allows launching the app in a special Node.js mode using -e to execute arbitrary system commands with Trilium Notes's permissions and identity. An attacker can leverage this through a subprocess to request any sensitive permissions, such as access to hardware (camera, microphone) and TCC-protected files, causing the TCC system prompt to appear as if the request came from Trilium rather than the attacker's code, because macOS treats the subprocess as part of the parent application. Exploitation allows access to TCC-protected resources like the screen, camera, microphone, and folders such as ~/Documents and ~/Downloads, undermining macOS's security model and UI integrity through social engineering. This issue has been fixed in version 0.102.2.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Related Vulnerabilities in Trilium Notes File Inclusion and Auth Bypass

View all 2
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

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