CVE-2025-66580
Dive vulnerability analysis and mitigation

Overview

CVE-2025-66580 is a critical Stored Cross-Site Scripting (XSS) vulnerability in Dive, an open-source MCP Host Desktop Application by OpenAgentPlatform, that can escalate to Remote Code Execution (RCE). The flaw exists in the Mermaid diagram rendering component in all versions prior to 0.11.1 (≤ v0.11.0). It was published on December 19, 2025, with a fix released in version 0.11.1. The vulnerability carries a CVSS v3.1 base score of 9.6 (Critical) (GitHub Advisory, Red Hat CVE).

Technical details

The root cause is the insecure configuration of the Mermaid diagram library using securityLevel: 'loose', which permits javascript: protocol URIs in click interaction definitions (CWE-94: Improper Control of Code Generation; CWE-79: Cross-Site Scripting). An attacker crafts a Mermaid diagram containing a node with a click event that triggers a javascript: URI payload; when the victim clicks the node, the injected JavaScript executes within the application context. The payload leverages the application's internal API proxy via fetch() to send a POST request to /api/config/mcpserver, overwriting the MCP server configuration with a malicious command (e.g., calc), which the backend then executes. This attack requires no authentication and no special privileges — only a single user interaction (clicking the malicious node) (GitHub Advisory).

Impact

Successful exploitation results in Remote Code Execution on the victim's machine with HIGH impact on confidentiality, integrity, and availability. An attacker can overwrite the MCP server configuration to register and execute arbitrary system commands, potentially enabling full system compromise, data exfiltration, installation of malware, or lateral movement within the victim's environment. The scope change (S:C) in the CVSS score reflects that the impact extends beyond the Dive application itself to the underlying operating system (GitHub Advisory, Feedly).

Exploitability

A proof-of-concept (PoC) exploit is publicly available in the GitHub Security Advisory, demonstrating the exact Mermaid diagram payload required to trigger RCE. There is no confirmed evidence of in-the-wild exploitation at this time, and no threat actor attribution has been reported. The EPSS score is approximately 0.00166 (low probability of near-term exploitation), and the vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The attack vector is network-accessible with low complexity and no required privileges, making it straightforward for remote unauthenticated attackers to weaponize (GitHub Advisory, Feedly).

Exploitation steps

  1. Reconnaissance: Identify targets using Dive (openagentplatform/dive) versions ≤ 0.11.0, particularly users who interact with AI-generated or shared Mermaid diagrams within the application.
  2. Craft malicious Mermaid diagram: Construct a Mermaid graph containing a clickable node with a javascript: URI payload in the click directive, for example:
graph TD
  A[Click me]
  click A "javascript:fetch('/api/config/mcpserver',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({mcpServers:{test:{transport:'stdio',command:'calc'}}})})"
  1. Deliver the payload: Inject the malicious Mermaid diagram into the victim's Dive session — for example, by prompting the integrated LLM to generate the diagram, sharing a configuration, or through any input channel that renders Mermaid content in the application.
  2. Wait for user interaction: The payload is stored and rendered in the Mermaid component. When the victim clicks the malicious node (e.g., labeled 'Click me'), the javascript: URI executes in the application context due to securityLevel: 'loose'.
  3. MCP server configuration overwrite: The injected JavaScript sends a POST request to /api/config/mcpserver via the application's internal API proxy, registering a new MCP server entry with a malicious command value.
  4. Achieve RCE: The Dive backend processes the new MCP server configuration and executes the attacker-specified command (e.g., calc on Windows, or any arbitrary shell command), resulting in code execution on the victim's machine (GitHub Advisory).

Indicators of compromise

  • Network: Unexpected POST requests to /api/config/mcpserver originating from the Dive application process, especially with unusual or newly registered MCP server entries containing unfamiliar command values.
  • File System: Modifications to the Dive MCP server configuration file reflecting newly added or altered server entries with suspicious commands (e.g., system binaries, reverse shell commands, or unexpected executables).
  • Process: Unexpected child processes spawned by the Dive backend service (e.g., calc.exe, cmd.exe, bash, powershell, curl, or other binaries not normally launched by Dive).
  • Logs: Application logs showing POST requests to /api/config/mcpserver with JSON bodies containing unfamiliar mcpServers entries; Mermaid rendering events followed immediately by API configuration changes (GitHub Advisory).

Mitigation and workarounds

The vendor has released Dive version 0.11.1, which fixes this vulnerability by addressing the insecure Mermaid securityLevel: 'loose' configuration. All users running Dive ≤ 0.11.0 should upgrade to version 0.11.1 or later immediately. As interim mitigations: restrict or disable Dive usage in environments handling sensitive data until patched; educate users to avoid clicking nodes in diagrams generated from untrusted or unknown sources; and monitor for suspicious MCP server configuration changes and unexpected process execution from the Dive backend (GitHub Advisory, Red Hat CVE).

Community reactions

The vulnerability was noted by The Hacker Wire, which published a brief report highlighting the critical RCE-via-XSS chain in the Dive MCP Host Desktop Application. Security community members on Mastodon (infosec.exchange) and Bluesky shared the advisory shortly after publication. The CISA weekly vulnerability bulletin for the week of December 15, 2025 included reference to this CVE. A later blog post on dev.to discussed CVE-2025-66580 in the context of MCP's expanding attack surface, noting the similarity to CVE-2025-58768 (The Hacker Wire, CISA Bulletin).

Additional resources


SourceThis report was generated using AI

Related Dive vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-56865HIGH8.4
  • cAdvisor logocAdvisor
  • cluster-api-azure-controller-1.25
NoYesAug 13, 2026
CVE-2026-56864HIGH7.5
  • cAdvisor logocAdvisor
  • kubernetes-csi-node-driver-registrar-fips-2.17
NoYesAug 13, 2026
CVE-2026-56862HIGH7.5
  • cAdvisor logocAdvisor
  • kubernetes-csi-node-driver-registrar-fips-2.17
NoYesAug 13, 2026
CVE-2026-56859HIGH7.5
  • cAdvisor logocAdvisor
  • golang-bin
NoYesAug 13, 2026
CVE-2026-56860MEDIUM5.9
  • cAdvisor logocAdvisor
  • mcp-grafana-fips
NoYesAug 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management