CVE-2021-42057Obsidian Dataview
High 7.8
Follow: this CVE · Obsidian · Obsidian Dataview We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Obsidian Dataview.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| obsidian | obsidian_dataview | ≤ 0.4.11 |
| obsidian | obsidian_dataview | 0.4.12 |
| obsidian | obsidian_dataview | 0.4.12 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Issue Tracking Third Party Advisory