{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "0.4.11"
              },
              {
                "introduced": "0"
              },
              {
                "last_affected": "0.4.12-NA"
              },
              {
                "introduced": "0"
              },
              {
                "last_affected": "0.4.12-hotfix1"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "d6989bcd9d0ee1519b5b4b720dd25867af87deab"
            },
            {
              "introduced": "0"
            },
            {
              "last_affected": "3cbb5caf0bb4a775c2d38fbc470d580d8fc03987"
            },
            {
              "introduced": "0"
            },
            {
              "last_affected": "3a10245005e382801c325728dbd9667c4673bc34"
            }
          ],
          "repo": "https://github.com/blacksmithgu/obsidian-dataview",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2021-42057",
  "modified": "2026-03-13T21:47:41.880549609Z",
  "published": "2021-11-04T21:15:09.080Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://github.com/blacksmithgu/obsidian-dataview/issues/615"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}