Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-49492: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in shd101wyy Markdown Preview Enhanced

0
High
VulnerabilityCVE-2026-49492cvecve-2026-49492
Published: Fri Jun 05 2026 (06/05/2026, 17:49:52 UTC)
Source: CVE Database V5
Vendor/Project: shd101wyy
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/05/2026, 18:33:36 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses