Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2025-65716: Arbitrary JavaScript Execution in VS Code Markdown Preview Enhanced

Published Feb 16, 2026 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.8High · v3.1
EPSS0.77%52nd percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Shd101wyy
IdentifiersCVE-2025-65716CWE-79

CVE-2025-65716 is a high-severity vulnerability in the Markdown Preview Enhanced extension for Visual Studio Code, reported in version 0.8.18 and also described as affecting all versions. The flaw stems from unsafe rendering of HTML content in Markdown preview, specifically insufficient sanitization or restriction of attacker-controlled HTML tags embedded in Markdown documents. By supplying a crafted Markdown file and inducing a victim to open it in the extension’s preview feature, an attacker can execute arbitrary JavaScript within the preview context, including execution through iframe-based content under the browser same-origin model used by the preview environment. This turns a Markdown preview action into an active script execution surface inside the developer workstation context.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows attacker-supplied JavaScript to run in the Markdown preview context on the victim system. Reported post-exploitation effects include local port enumeration, probing of services reachable from the developer machine, and exfiltration of collected data. Because the issue occurs inside a developer IDE extension with access to local resources and trusted workflows, the vulnerability can expose sensitive information and expand attacker visibility into locally running services and development assets.

Mitigation

If you can’t patch tonight, do this now.

Do not open untrusted Markdown files in Markdown Preview Enhanced, especially from external repositories, downloads, or unsolicited sources. Restrict use of the extension to trusted workspaces and trusted content only. Disable or uninstall the extension in environments where untrusted Markdown may be encountered. Reduce exposure of sensitive local services during development, and avoid relying on preview features that render raw HTML from untrusted documents until a confirmed fix is available.

Remediation

Patch, then assume compromise.

Upgrade Markdown Preview Enhanced to a vendor-fixed release if one becomes available. The available reporting references version 0.8.18 as affected and also states that all versions may be impacted, with some reporting indicating the issue remained unpatched at the time of publication. If no verified patched version is available, remove or disable the extension. A proper fix requires sanitizing or blocking active HTML and script-capable constructs in Markdown preview, including iframe-mediated script execution paths, and enforcing a restrictive content security model for rendered preview content.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Shd101wyyMarkdown Preview Enhancedapplication
FAQ

Frequently asked questions

Is CVE-2025-65716 exploited in the wild?
As of Sep 25, 2026, Mallory has no reports of CVE-2025-65716 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2025-65716?
Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2025-65716.
Is there a patch for CVE-2025-65716?
Upgrade Markdown Preview Enhanced to a vendor-fixed release if one becomes available. The available reporting references version 0.8.18 as affected and also states that all versions may be impacted, with some reporting indicating the issue remained unpatched at the time of publication.
What products are affected by CVE-2025-65716?
Shd101wyy Markdown Preview Enhanced.
How severe is CVE-2025-65716?
CVE-2025-65716 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 0.77% (52nd percentile) as of Sep 25, 2026.
Activity feed

Recent activity

17 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+4 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity9Community discussion across Reddit, Mastodon, and other social sources.