Security mailing lists by PureSourceCode

CVE-2021-42057

HIGH 7.8CVSS 3.1

Obsidian 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD obsidian obsidian_dataview
cpe:2.3:a:obsidian:obsidian_dataview:*:*:*:*:*:*:*:*
<= 0.4.11
NVD obsidian obsidian_dataview
cpe:2.3:a:obsidian:obsidian_dataview:0.4.12:-:*:*:*:*:*:*
= 0.4.12
NVD obsidian obsidian_dataview
cpe:2.3:a:obsidian:obsidian_dataview:0.4.12:hotfix1:*:*:*:*:*:*
= 0.4.12
OSV npm obsidian-dataview < 0.4.13 0.4.13

References

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.