Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-104078 Overview
CVE-2026-104078 is a remote code execution vulnerability in Obsidian Desktop versions prior to 1.14.0. The flaw resides in the bundled MathJax 3.2.2 Safe component, which fails to properly validate URL schemes containing embedded TAB bytes. Attackers can craft a Markdown note containing a malicious MathJax formula that renders as a javascript: anchor. When the victim clicks the rendered link in Live Preview, code executes inside the Node-integration-enabled vault renderer. The attacker gains arbitrary operating system command execution as the desktop user through require('child_process'). The vulnerability is classified under [CWE-79] and affects the Electron-based desktop client.
Critical Impact
A single malicious note shared through a vault, download, or sync service can achieve full code execution as the Obsidian user when opened and clicked.
Affected Products
- Obsidian Desktop versions before 1.14.0
- Bundled MathJax 3.2.2 Safe component
- Electron-based vault renderer with Node integration enabled
Discovery Timeline
- 2026-10-05 - Obsidian Desktop v1.14.4 changelog published addressing the issue
- 2026-10-08 - CVE-2026-104078 published to NVD
- 2026-10-12 - Last updated in NVD database
Technical Details for CVE-2026-104078
Vulnerability Analysis
The vulnerability stems from how MathJax 3.2.2's filterURL function processes URL schemes in \href values. When a TAB byte (\t) is embedded in the URL scheme portion, filterURL normalizes the input in a way that produces an empty protocol string. The empty protocol bypasses the configured safeProtocols allowlist, which only inspects named schemes. Obsidian renders the resulting anchor in Live Preview without further sanitization. Because the vault renderer runs with Node integration enabled, any JavaScript executed in that context has access to Node.js APIs including child_process. This bridges a Markdown rendering flaw into full operating system command execution.
Root Cause
Two weaknesses combine to enable exploitation. First, MathJax 3.2.2's Safe extension performs insufficient scheme normalization and treats TAB-contaminated schemes as empty rather than rejecting them. Second, Obsidian Desktop's renderer process retains Node integration, meaning rendered content shares the privilege boundary with native Node APIs. Neither issue alone is sufficient, but together they convert content rendering into code execution.
Attack Vector
Exploitation requires local user interaction. An attacker authors a Markdown note embedding a MathJax \href expression whose URL scheme contains an embedded TAB byte followed by javascript: payload content. The attacker delivers the note through any vault distribution mechanism, including shared vaults, Git synchronization, cloud storage, or community plugin content. When the victim opens the note in Live Preview and clicks the rendered link, the javascript: URL executes in the renderer. The payload then invokes require('child_process').exec() or equivalent APIs to launch arbitrary commands.
For technical details on the exploitation chain, see the Codeant RCE Research and the VulnCheck Advisory on Obsidian RCE.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-104078
Indicators of Compromise
- Markdown files containing MathJax \href expressions with embedded TAB characters (0x09) inside URL schemes
- Obsidian renderer process (Obsidian.exe or Obsidian) spawning child processes such as cmd.exe, powershell.exe, /bin/sh, or bash
- Outbound network connections from the Obsidian process to attacker-controlled infrastructure following note access
- Newly created scheduled tasks, cron entries, or persistence artifacts correlated with Obsidian usage
Detection Strategies
- Scan vault directories for Markdown content matching regex patterns that include \\href with TAB bytes before javascript: or empty-scheme constructs
- Monitor endpoint telemetry for Obsidian processes creating script interpreter or shell child processes, which is anomalous for a note-taking application
- Alert on Electron renderer processes performing file writes outside the vault path or spawning network utilities
Monitoring Recommendations
- Enable process-creation logging on endpoints with Obsidian installed and baseline the normal child-process behavior
- Review vault synchronization sources for untrusted contributors and audit community plugins that render Markdown
- Track Obsidian version inventory to confirm all desktop installations are at or above 1.14.0
How to Mitigate CVE-2026-104078
Immediate Actions Required
- Upgrade Obsidian Desktop to version 1.14.0 or later across all user systems, with 1.14.4 recommended per the vendor changelog
- Audit shared vaults and recently imported notes for MathJax expressions containing TAB bytes in URL schemes
- Instruct users to avoid clicking rendered math expressions in notes received from untrusted sources until patched
Patch Information
Obsidian addressed the vulnerability in version 1.14.0. The fix is documented in the Obsidian Desktop Changelog v1.14.4. Users should download the current release directly from the official Obsidian website and verify the installed version through the application's About dialog.
Workarounds
- If immediate patching is not possible, disable MathJax rendering or avoid using Live Preview mode when opening notes from untrusted vaults
- Isolate Obsidian usage to vaults containing only trusted content and disable automatic synchronization of notes from external contributors
- Review and remove untrusted community plugins that process or inject Markdown content into vaults
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

