CVE-2026-39309
JSON

5.5medium

Trilium Notes: macOS TCC Bypass via Prompt Spoofing

Severity
5.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.18% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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.

Affected

Product or packageVersionsReported by
TriliumNext Trilium< 0.102.2CVE List

Classification

CWE-290CWE-451

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Trilium Notes es una aplicación multiplataforma y jerárquica para tomar notas, enfocada en construir grandes bases de conocimiento personal. En las versiones 0.102.1 y anteriores, la configuración de Electron es vulnerable a un bypass de TCC a través de suplantación de avisos, permitiendo a atacantes locales activar avisos de permisos engañosos de macOS al ejecutar código malicioso bajo la identidad de la aplicación de confianza. La causa raíz es que el fusible RunAsNode permite iniciar la aplicación en un modo especial de Node.js usando -e para ejecutar comandos de sistema arbitrarios con los permisos e identidad de Trilium Notes. Un atacante puede aprovechar esto a través de un subproceso para solicitar cualquier permiso sensible, como acceso al hardware (cámara, micrófono) y archivos protegidos por TCC, haciendo que el aviso del sistema TCC aparezca como si la solicitud proviniera de Trilium en lugar del código del atacante, porque macOS trata el subproceso como parte de la aplicación principal. La explotación permite el acceso a recursos protegidos por TCC como la pantalla, cámara, micrófono y carpetas como ~/Documents y ~/Downloads, socavando el modelo de seguridad de macOS y la integridad de la interfaz de usuario a través de ingeniería social. Este problema ha sido solucionado en la versión 0.102.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-39309 changed 2026-05-20CVE Terms of Use
NVDCVE-2026-39309 changed 2026-07-24Public domain