High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-42057
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:58 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-42057
Complete source record
{
"id": "78dd16fc01af73026e5d3a9e7a4e45427dd0b63aa9e5526dacd0b8e2f393e4de",
"url": "https://osv.dev/vulnerability/CVE-2021-42057",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-42057",
"summary": "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.",
"evidence": "osv:CVE-2021-42057",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-42057",
"aliases": [
"CVE-2021-42057",
"GHSA-xfg5-vrmc-24wc"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/blacksmithgu/obsidian-dataview",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "d6989bcd9d0ee1519b5b4b720dd25867af87deab"
},
{
"introduced": "3cbb5caf0bb4a775c2d38fbc470d580d8fc03987"
},
{
"last_affected": "3a10245005e382801c325728dbd9667c4673bc34"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:obsidian:obsidian_dataview:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "0.4.11"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:obsidian:obsidian_dataview:0.4.12:-:*:*:*:*:*:*",
"range": [
{
"introduced": "0.4.12-NA"
},
{
"last_affected": "0.4.12-NA"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:obsidian:obsidian_dataview:0.4.12:hotfix1:*:*:*:*:*:*",
"range": [
{
"introduced": "0.4.12-hotfix1"
},
{
"last_affected": "0.4.12-hotfix1"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"0.4.12-NA",
"0.4.12-hotfix1",
"0.4.12",
"0.4.11",
"0.4.10",
"build/main.js",
"0.4.8",
"0.4.7",
"0.4.6",
"0.4.5",
"0.4.4",
"0.4.3",
"0.4.2",
"0.4.1",
"0.3.13",
"0.3.12",
"0.3.11",
"0.3.10",
"0.3.9",
"0.3.8",
"0.3.7",
"0.3.6",
"0.3.5",
"0.3.4",
"0.3.3",
"0.3.2",
"0.3.1",
"0.3.0",
"0.2.17",
"0.2.16",
"0.2.15",
"0.2.14",
"0.2.13",
"0.2.12",
"0.2.11",
"0.2.10",
"0.2.9",
"0.2.8",
"0.2.7",
"0.2.6",
"0.2.5",
"0.2.4",
"0.2.3",
"0.2.2",
"0.2.1",
"untagged-4ed471ab8721a455dae4",
"0.2.0",
"0.1.10",
"0.1.9",
"0.1.8",
"0.1.7",
"0.1.6",
"0.1.5",
"0.1.4",
"0.1.3",
"0.1.2",
"0.1.1",
"0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-42057.json"
}
}
],
"modified": "2026-10-20T10:55:00.166237565Z",
"provider": "osv",
"references": [
"https://github.com/blacksmithgu/obsidian-dataview/issues/615"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-42057",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 386658,
"published_at": "2021-11-04T21:15:09.08+00:00"
}