Live threats

All CVEs / Obsidian

CVE-2021-42057Obsidian Dataview

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
1.2%
probability of exploitation in 30 days · percentile 69
Auth required
Yes
Published
Nov 4, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Obsidian Dataview.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm obsidian-dataview < 0.4.13 0.4.13 npm install obsidian-dataview@0.4.13

Per OSV / GitHub Advisories (GHSA-xfg5-vrmc-24wc). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
obsidianobsidian_dataview≤ 0.4.11
obsidianobsidian_dataview0.4.12
obsidianobsidian_dataview0.4.12

Official sources

References

Links published by the sources. Open them with care.

  • github.com Exploit Issue Tracking Third Party Advisory