Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. obsidian-dataview
  4. ›
  5. CVE-2021-42057

CVE-2021-42057: Improper Control of Generation of Code ('Code Injection')

November 4, 2021 (updated November 8, 2021)

Obsidian Dataview 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: provides a mitigation for some use cases.

References

  • github.com/blacksmithgu/obsidian-dataview/issues/615
  • nvd.nist.gov/vuln/detail/CVE-2021-42057

Code Behaviors & Features

Detect and mitigate CVE-2021-42057 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.4.12

Fixed versions

  • 0.4.12-hotfix1

Solution

Upgrade to version 0.4.12-hotfix1 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/obsidian-dataview/CVE-2021-42057.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:47 +0000.