Quick answers
- Is CVE-2026-49493 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-49493 being exploited in the wild.
- How severe is CVE-2026-49493?
- High severity, with a CVSS score of 8.8, published 5 June 2026.
- Which products and versions are affected?
- Shd101wyy Markdown Preview Enhanced < 0.8.28.
- Is there a fix for CVE-2026-49493?
- A patch was published on 2026-06-05: Fixed in version 0.8.28 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-49493 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-49493?
- Check whether you run Shd101wyy Markdown Preview Enhanced at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
Markdown Preview Enhanced versions prior to 0.8.28 are vulnerable to code injection (CWE-94). The Bitfield renderer used the interpretJS() function, which internally calls vm.runInNewContext() to evaluate the content of fenced code blocks. Because these blocks were treated as executable code rather than static data, an attacker can embed malicious JavaScript within a bitfield definition. When a victim renders or exports a document containing this crafted block, the code executes with the privileges of the application. The issue was resolved in version 0.8.28 by replacing the insecure evaluation with JSON5.parse() for bitfield register definitions.
Affected products
- shd101wyy Markdown Preview Enhanced < 0.8.28
Timeline
- 2026-06-05: disclosed
- 2026-06-05: patched: Fixed in version 0.8.28
- 2026-06-05: advisory