CWE-95Weakness · CWE-95

CVE-2026-50733

HIGH · 8.8 CVSS v3.1 Published 2026-06-05
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
95/100
Remediation priority · Urgent
Remotely reachable No privileges

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
Markdown Preview Enhanced before 0.8.28 parses WaveDrom diagrams by evaluating untrusted markdown content with eval(), allowing arbitrary JavaScript execution. The flaw affects every render path - the live preview (window.eval) and presentation mode plus HTML export (the bundled WaveDrom.ProcessAll()/eva() helpers) - and can also be triggered through a <script type="WaveDrom"> element injected via raw HTML in markdown. When a victim previews or exports a crafted markdown document, an attacker can execute arbitrary code, leading to arbitrary file write. Fixed in 0.8.28 by parsing with JSON5.parse() and sanitizing WaveDrom data scripts to inert strict JSON.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Markdown Preview Enhanced before 0.8.26 has a critical insecure deserialization vulnerability where it parses WaveDrom diagrams by passing untrusted markdown content through eval() (both window.eval in live preview and bundled WaveDrom.ProcessAll()/eva() helpers in presentation mode and HTML export). Attackers can inject malicious WaveDrom diagram definitions containing arbitrary JavaScript code, which executes with the victim's privileges when the markdown is previewed or exported.

MitigationUpgrade to Markdown Preview Enhanced version 0.8.28 or later, which replaces eval() with JSON5.parse() and sanitizes WaveDrom data scripts. Until upgraded, avoid previewing or exporting untrusted markdown documents containing WaveDrom diagrams.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Confirm Markdown Preview Enhanced is installed
    Check your VS Code or editor extensions list for 'Markdown Preview Enhanced' or examine your project's package.json for '@shdemyw/mde' or 'markdown-preview-enhanced' dependency
    Affected if The extension is present in your environment
  2. Identify the installed version
    Run 'npm list markdown-preview-enhanced' in the project directory, or view the extension details in your editor's extension manager, or check the version field in package.json
    Affected if The version is lower than 0.8.26 (e.g., 0.8.25, 0.8.24, etc.)
  3. Determine if WaveDrom diagrams are used
    Search project markdown files for ```wavedrom code blocks or look for the WaveDrom library imported in any configuration
    Affected if Markdown files contain ```wavedrom blocks with diagram definitions
  4. Check for live preview or HTML export usage
    Inspect how markdown files are being rendered - look for live preview functionality or HTML export workflows that process the markdown content
    Affected if Live preview is enabled or HTML export is performed on documents containing WaveDrom blocks

You are affected if Markdown Preview Enhanced version 0.8.25 or earlier is installed AND your markdown documents contain WaveDrom diagram blocks that are being previewed or exported.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade to Markdown Preview Enhanced version 0.8.28 or later, which replaces eval() with JSON5.parse() and sanitizes WaveDrom data scripts. Until upgraded, avoid previewing or exporting untrusted markdown documents containing WaveDrom diagrams.

Recommended fix High confidence

markdown-preview-enhanced version 0.8.28

  1. Identify the project using Markdown Preview Enhanced (e.g., in package.json or project dependencies)
  2. Run 'npm list markdown-preview-enhanced' or check your package-lock.json to confirm the current installed version
  3. If the installed version is below 0.8.28, run 'npm install [email protected]' to upgrade to the fixed release
  4. Verify the upgrade was successful by running 'npm list markdown-preview-enhanced' and confirming version 0.8.28 is installed
  5. Test that markdown documents with WaveDrom diagrams render correctly after the upgrade
  6. If using a dependency lock file, run 'npm audit' or 'npm update' to ensure the version is properly pinned
Caveat No breaking changes documented for this security update; the upgrade replaces eval() with JSON5.parse() for safer parsing

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing6.0 h
  • Review / QA3.0 h
21.0 hours of engineering $3,680
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,888.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-50733 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-50733 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data