Skip to content
RCE Write-up Intermediate

Critical RCE found in Obsidian Tasks plugin

The Obsidian Tasks plugin allowed JavaScript execution from Tasks queries embedded in Markdown files, so opening a malicious note could run code on the user's machine. The maintainer changed the default in version 8.0.0 so JavaScript execution must be explicitly enabled.

zeroquarry.com

Published on zeroquarry.com

ZeroQuarry identified a critical remote-code-execution path in the Obsidian Tasks plugin and coordinated responsible disclosure with Obsidian and the plugin maintainer.

The author, on zeroquarry.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the plugin evaluated user-supplied JavaScript from Tasks query filters without sandboxing or requiring an explicit opt-in.

Impact

Opening a malicious Markdown file could execute arbitrary code on the user's machine, though the text notes the exploit detail is limited and the fix disables the behaviour by default.

What the attacker needed

Tasks plugin installed; risky JavaScript execution enabled; victim opens a malicious Markdown file

The fix

Tasks 8.0.0 was released and disables JavaScript execution in Tasks queries by default, requiring users to explicitly enable it.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A plugin for the note-taking app Obsidian let special instructions inside a note run JavaScript, which is code that can do things on your computer. A malicious note could therefore run code when opened. The fix makes this feature off by default so users must turn it on deliberately.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.