blacksmithgu/obsidian-dataview · Security
Obsidian Dataview vulnerable to code injection due to unsafe eval
- GHSA ID
- GHSA-xfg5-vrmc-24wc
- CVE ID
- CVE-2021-42057
- Severity
- high
- Published
- Updated
- CVSS
- 7.8 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CVSS v3
- 7.8 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Description
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.
CWEs
- CWE-94 · Improper Control of Generation of Code ('Code Injection')