CVE-2021-42057: Code Injection

Published Nov 4, 2021
·
Updated

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.

Other sources

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.

Affected Software

4 affected componentsFixes available
npm/obsidian-dataview<=0.4.12-hotfix1
0.4.13
Obsidian Obsidian Dataview<=0.4.11
Obsidian Obsidian Dataview=0.4.12
Obsidian Obsidian Dataview=0.4.12-hotfix1

Event History

Nov 4, 2021
CVE Published
via MITRE·08:20 PM
Data Sourced
via MITRE·08:20 PM
Description
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeaknessAffected Software
May 24, 2022
Advisory Published
07:19 PM

Frequently Asked Questions

1

What is the vulnerability ID for Obsidian Dataview?

The vulnerability ID for Obsidian Dataview is CVE-2021-42057.

2

What is the severity of CVE-2021-42057?

The severity of CVE-2021-42057 is critical.

3

What is the affected software for CVE-2021-42057?

The affected software for CVE-2021-42057 is Obsidian Dataview through 0.4.12-hotfix1.

4

How does CVE-2021-42057 allow eval injection?

CVE-2021-42057 allows eval injection through the `evalInContext` function in Obsidian Dataview.

5

Is there a mitigation for CVE-2021-42057?

Yes, 0.4.13 provides a mitigation for some use cases of CVE-2021-42057.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203