CVE-2026-49492: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in shd101wyy Markdown Preview Enhanced
Markdown Preview Enhanced before 0.8.28 opens external files and links from the preview through a shell and does not validate untrusted inputs taken from the markdown document - the diagram filename attribute, imported file paths, and the latex_engine code-chunk attribute. On Windows, a crafted markdown document can inject operating system commands that execute when the document is previewed. Fixed in 0.8.28 by passing these inputs as literal arguments instead of through a shell and validating them before use.
AI Analysis
Technical Summary
CVE-2026-49492 describes an OS command injection vulnerability in Markdown Preview Enhanced before version 0.8.28. The vulnerability arises from the application's practice of opening external files and links via a shell on Windows without validating untrusted inputs derived from markdown documents, specifically the diagram filename attribute, imported file paths, and the latex_engine code-chunk attribute. This allows an attacker to craft a markdown document that injects and executes arbitrary operating system commands during preview. The vulnerability was addressed in version 0.8.28 by changing the input handling to pass arguments literally and adding validation steps.
Potential Impact
Successful exploitation allows an unauthenticated attacker to execute arbitrary OS commands on a Windows system when a malicious markdown document is previewed. This can lead to system compromise, data loss, or other impacts depending on the executed commands. The CVSS 4.0 base score is 8.6 (high severity), reflecting network attack vector, no privileges required, user interaction needed, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade Markdown Preview Enhanced to version 0.8.28 or later, where the vulnerability is fixed by proper input validation and safe argument passing. Until upgrading, avoid previewing untrusted markdown documents on Windows systems. Patch status is not explicitly confirmed in the provided data, but the fix is stated to be in version 0.8.28. Check the vendor's official advisory or release notes for confirmation and further guidance.
CVE-2026-49492: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in shd101wyy Markdown Preview Enhanced
Description
Markdown Preview Enhanced before 0.8.28 opens external files and links from the preview through a shell and does not validate untrusted inputs taken from the markdown document - the diagram filename attribute, imported file paths, and the latex_engine code-chunk attribute. On Windows, a crafted markdown document can inject operating system commands that execute when the document is previewed. Fixed in 0.8.28 by passing these inputs as literal arguments instead of through a shell and validating them before use.
CVSS v4.0
Score 8.6high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-49492 describes an OS command injection vulnerability in Markdown Preview Enhanced before version 0.8.28. The vulnerability arises from the application's practice of opening external files and links via a shell on Windows without validating untrusted inputs derived from markdown documents, specifically the diagram filename attribute, imported file paths, and the latex_engine code-chunk attribute. This allows an attacker to craft a markdown document that injects and executes arbitrary operating system commands during preview. The vulnerability was addressed in version 0.8.28 by changing the input handling to pass arguments literally and adding validation steps.
Potential Impact
Successful exploitation allows an unauthenticated attacker to execute arbitrary OS commands on a Windows system when a malicious markdown document is previewed. This can lead to system compromise, data loss, or other impacts depending on the executed commands. The CVSS 4.0 base score is 8.6 (high severity), reflecting network attack vector, no privileges required, user interaction needed, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade Markdown Preview Enhanced to version 0.8.28 or later, where the vulnerability is fixed by proper input validation and safe argument passing. Until upgrading, avoid previewing untrusted markdown documents on Windows systems. Patch status is not explicitly confirmed in the provided data, but the fix is stated to be in version 0.8.28. Check the vendor's official advisory or release notes for confirmation and further guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-05-31T11:54:34.993Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a23130ee29bf47b50a3f1ea
Added to database: 6/5/2026, 6:18:54 PM
Last enriched: 6/5/2026, 6:33:36 PM
Last updated: 6/5/2026, 8:12:16 PM
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.