{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-49492 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-49492 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-49492 is a high-severity command injection vulnerability in shd101wyy Markdown Preview Enhanced, published on 5 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-49492 and fix it if it is affected.\n\nWhat it is: CVE-2026-49492 is a high-severity command injection vulnerability in shd101wyy Markdown Preview Enhanced, published on 5 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-49492 in the wild and no public exploit code.\n\nAffected product: shd101wyy Markdown Preview Enhanced. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-49492/ (Markdown: https://insights.sbomify.com/CVE-2026-49492/index.md)","id":"CVE-2026-49492","markdown":"https://insights.sbomify.com/CVE-2026-49492/index.md","name":"CVE-2026-49492","record":{"aliases":["GHSA-3vxg-8vgp-994w"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Markdown Preview Enhanced","requires_auth":"none","summary":"Attackers can execute arbitrary OS commands on Windows by crafting a markdown document with malicious attributes in Markdown Preview Enhanced.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-06-11","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-06-11T10:26:57Z","kind":"github_poc","ref":"https://github.com/byte16384/CVE-2026-49492-PoC","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":false,"headline":"Markdown Preview Enhanced OS Command Injection in External File and Link Opening","id":"CVE-2026-49492","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":0,"n_references":2,"next":{"headline":"Markdown Preview Enhanced Arbitrary Code Execution via Bitfield interpretJS()","id":"CVE-2026-49493"},"packages":[],"prev":{"headline":"Pixa Bank 2.0 SQL Injection via agence-ajax.php API","id":"CVE-2026-49491"},"products":["Markdown Preview Enhanced"],"published":"2026-06-05","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-06-08","vendors":["shd101wyy"]},"summary":"Attackers can execute arbitrary OS commands on Windows by crafting a markdown document with malicious attributes in Markdown Preview Enhanced.","url":"https://insights.sbomify.com/CVE-2026-49492/"}