CVE-2026-39309 Trilium Notes: macOS TCC Bypass via Prompt Spoofing
Local attackers can bypass macOS TCC protections to access sensitive resources like camera and files by spoofing permission prompts via Electron's RunAsNode fuse.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-39309?
CVE-2026-39309 is a medium-severity vulnerability in TriliumNext Trilium, published on 19 May 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
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.
Which versions are affected by CVE-2026-39309?
How do I fix CVE-2026-39309?
No fix has been published for CVE-2026-39309 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-39309 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39309 exists.
Sources
Also known as GHSA-66pm-8hvq-2wwx.