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
Markdown Preview Enhanced prior to version 0.8.28 improperly neutralizes special elements used in OS commands, leading to an OS command injection vulnerability on Windows. The vulnerability arises from opening external files and links via a shell without validating untrusted inputs extracted from markdown documents, including diagram filename attributes, imported file paths, and latex_engine code-chunk attributes. This allows an attacker to craft markdown documents that execute arbitrary operating system commands during preview. The vulnerability is resolved in version 0.8.28 by changing the handling of these inputs to pass them as literal arguments instead of through a shell and by validating inputs before use.
Potential Impact
An attacker can execute arbitrary operating system commands on Windows systems by crafting malicious markdown documents that exploit unvalidated inputs in the preview feature. This can lead to high-impact consequences such as system compromise or data loss. The CVSS 4.0 score is 8.6 (high severity), reflecting network attack vector, low attack complexity, 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 this vulnerability is fixed by proper input validation and passing inputs as literal arguments instead of through a shell. No other mitigation is required once updated.
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
Affected software
pkg:github/shd101wyy/markdown-preview-enhancedRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Markdown Preview Enhanced prior to version 0.8.28 improperly neutralizes special elements used in OS commands, leading to an OS command injection vulnerability on Windows. The vulnerability arises from opening external files and links via a shell without validating untrusted inputs extracted from markdown documents, including diagram filename attributes, imported file paths, and latex_engine code-chunk attributes. This allows an attacker to craft markdown documents that execute arbitrary operating system commands during preview. The vulnerability is resolved in version 0.8.28 by changing the handling of these inputs to pass them as literal arguments instead of through a shell and by validating inputs before use.
Potential Impact
An attacker can execute arbitrary operating system commands on Windows systems by crafting malicious markdown documents that exploit unvalidated inputs in the preview feature. This can lead to high-impact consequences such as system compromise or data loss. The CVSS 4.0 score is 8.6 (high severity), reflecting network attack vector, low attack complexity, 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 this vulnerability is fixed by proper input validation and passing inputs as literal arguments instead of through a shell. No other mitigation is required once updated.
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: 06/05/2026, 18:18:54 UTC
Last enriched: 06/13/2026, 09:49:41 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 58
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.