CVE-2021-42057
HIGH 7.8CVSS 3.1Obsidian Dataview vulnerable to code injection due to unsafe eval
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.
- Published
- 4 Nov 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-xfg5-vrmc-24wc
- Sources
- NVDJSONOSV GHSA-xfg5-vrmc-24wcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 9.3 | AV:N/AC:M/Au:N/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | obsidian | obsidian_dataviewcpe:2.3:a:obsidian:obsidian_dataview:*:*:*:*:*:*:*:* |
<= 0.4.11 | |
| NVD | obsidian | obsidian_dataviewcpe:2.3:a:obsidian:obsidian_dataview:0.4.12:-:*:*:*:*:*:* |
= 0.4.12 | |
| NVD | obsidian | obsidian_dataviewcpe:2.3:a:obsidian:obsidian_dataview:0.4.12:hotfix1:*:*:*:*:*:* |
= 0.4.12 | |
| OSV | npm | obsidian-dataview | < 0.4.13 | 0.4.13 |
References
- https://github.com/blacksmithgu/obsidian-dataview/issues/615 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-42057 · ADVISORY
- https://github.com/blacksmithgu/obsidian-dataview · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 4 Nov 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 May 2022)