CVE-2026-50733
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 · uneditedMarkdown 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 confidenceMarkdown 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.
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 checksWork through these to decide whether this CVE applies to you.
-
Confirm Markdown Preview Enhanced is installedCheck 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' dependencyAffected if The extension is present in your environment
-
Identify the installed versionRun '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.jsonAffected if The version is lower than 0.8.26 (e.g., 0.8.25, 0.8.24, etc.)
-
Determine if WaveDrom diagrams are usedSearch project markdown files for ```wavedrom code blocks or look for the WaveDrom library imported in any configurationAffected if Markdown files contain ```wavedrom blocks with diagram definitions
-
Check for live preview or HTML export usageInspect how markdown files are being rendered - look for live preview functionality or HTML export workflows that process the markdown contentAffected 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.
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 · scopedUpgrade 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.
markdown-preview-enhanced version 0.8.28
- Identify the project using Markdown Preview Enhanced (e.g., in package.json or project dependencies)
- Run 'npm list markdown-preview-enhanced' or check your package-lock.json to confirm the current installed version
- If the installed version is below 0.8.28, run 'npm install [email protected]' to upgrade to the fixed release
- Verify the upgrade was successful by running 'npm list markdown-preview-enhanced' and confirming version 0.8.28 is installed
- Test that markdown documents with WaveDrom diagrams render correctly after the upgrade
- If using a dependency lock file, run 'npm audit' or 'npm update' to ensure the version is properly pinned
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing6.0 h
- Review / QA3.0 h
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 locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-50733 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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