{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-49493 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-49493 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-49493 is a high-severity vulnerability in shd101wyy Markdown Preview Enhanced, published on 5 Jun 2026."},"fix_prompt":"Check this codebase for CVE-2026-49493 and fix it if it is affected.\n\nWhat it is: CVE-2026-49493 is a high-severity vulnerability in shd101wyy Markdown Preview Enhanced, published on 5 Jun 2026. \nExploitation: There is no known exploitation of CVE-2026-49493 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-49493/ (Markdown: https://insights.sbomify.com/CVE-2026-49493/index.md)","id":"CVE-2026-49493","markdown":"https://insights.sbomify.com/CVE-2026-49493/index.md","name":"CVE-2026-49493","record":{"aliases":["GHSA-m5v2-jw65-jh59"],"analysis":null,"analysis_generated_by":null,"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-94","name":"Improper Control of Generation of Code"}],"description":"Markdown Preview Enhanced before 0.8.28 parses Bitfield fenced code blocks with interpretJS(), which evaluates the block content as code via vm.runInNewContext(), allowing arbitrary code execution. A crafted markdown document containing a malicious bitfield code block executes attacker-controlled code on the server side when the document is rendered or exported. Fixed in 0.8.28 by parsing bitfield register definitions with JSON5.parse(), since they are purely data.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Markdown Preview Enhanced Arbitrary Code Execution via Bitfield interpretJS()","id":"CVE-2026-49493","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":null,"year":"2026"},"n_packages":0,"n_references":2,"next":{"headline":"Xcitium Client Security / Comodo Internet Security Remote Denial of Service","id":"CVE-2026-49494"},"packages":[],"prev":{"headline":"Markdown Preview Enhanced OS Command Injection in External File and Link Opening","id":"CVE-2026-49492"},"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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-06-09","vendors":["shd101wyy"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-49493/"}