Skip to content

CVE-2021-42057 Obsidian Dataview vulnerable to code injection due to unsafe eval

HighCVSS 7.8 EPSS 1.2%
Published
Updated
Exploit status
No public exploit known

Description

Obsidian Dataview through 0.4.12-hotfix1 allows eval injection. The evalInContext function in executes user input, which allows an attacker to craft malicious Markdown files that will execute arbitrary code once opened. NOTE: 0.4.13 provides a mitigation for some use cases.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
npm obsidian-dataview(npm) < 0.4.13; <= 0.4.12-hotfix1 0.4.13 Fixed
obsidian dataview <= 0.4.11; = 0.4.12; = 0.4.12-hotfix1 after 0.4.11 Fixed

Affected products

ProductAffected versionsFixed in
npm obsidian-dataview(npm) <= 0.4.12-hotfix1 No fix listed
obsidian dataview <= 0.4.11 No fix listed
obsidian dataview = 0.4.12 No fix listed
obsidian dataview = 0.4.12-hotfix1 No fix listed
npm obsidian-dataview(npm) < 0.4.13 0.4.13

References