Advisory

GHSA-xfg5-vrmc-24wc

Also known as: CVE-2021-42057

Summary

Obsidian Dataview vulnerable to code injection due to unsafe eval

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-24 19:19 UTC
Modified
2023-11-08 04:07 UTC

Affected packages and fixes

obsidian-dataview

npm · All systems

Affected

  • introduced 0, fixed 0.4.13 (semver)

Fixed versions

0.4.13

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences