CVE-2025-66580: CWE-94: Improper Control of Generation of Code ('Code Injection') in OpenAgentPlatform Dive
Dive is an open-source MCP Host Desktop Application that enables integration with function-calling LLMs. A critical Stored Cross-Site Scripting (XSS) vulnerability exists in versions prior to 0.11.1 in the Mermaid diagram rendering component. The application allows the execution of arbitrary JavaScript via `javascript:`. An attacker can exploit this to inject a malicious Model Context Protocol (MCP) server configuration, leading to Remote Code Execution (RCE) on the victim's machine when the node is clicked. Version 0.11.1 fixes the issue.
AI Analysis
Technical Summary
CVE-2025-66580 is a critical stored cross-site scripting (XSS) vulnerability affecting the OpenAgentPlatform Dive application, an open-source MCP Host Desktop Application designed to integrate with function-calling large language models (LLMs). The vulnerability exists in versions prior to 0.11.1 within the Mermaid diagram rendering component, which improperly handles user-supplied input that includes the 'javascript:' URI scheme. This flaw allows an attacker to inject arbitrary JavaScript code that is stored and later executed when a user interacts with a compromised node in the diagram. The injected JavaScript can modify the Model Context Protocol (MCP) server configuration, effectively enabling remote code execution (RCE) on the victim's machine. This RCE occurs without requiring prior authentication but does require user interaction (clicking the malicious node). The vulnerability is classified under CWE-94 (Improper Control of Generation of Code), highlighting the unsafe handling of dynamic code generation. The CVSS v3.1 score of 9.7 reflects the vulnerability's critical nature, with network attack vector, low attack complexity, no privileges required, but user interaction needed, and complete compromise of confidentiality, integrity, and availability. Although no exploits are currently known in the wild, the potential impact is severe. The issue is resolved in Dive version 0.11.1, which properly sanitizes inputs and restricts execution of arbitrary JavaScript in Mermaid diagrams.
Potential Impact
The impact of CVE-2025-66580 on European organizations is significant due to the potential for remote code execution on endpoints running vulnerable versions of Dive. This can lead to full system compromise, data theft, unauthorized access to sensitive information, and disruption of services. Organizations leveraging Dive for integrating LLMs in their workflows, especially in sectors like technology, research, and AI development, face elevated risks. The vulnerability could be exploited to deploy malware, ransomware, or conduct espionage, affecting confidentiality, integrity, and availability of critical systems. Given the integration with function-calling LLMs, attackers might also manipulate AI-driven processes, causing further operational and reputational damage. The requirement for user interaction (clicking a malicious node) means social engineering or phishing could be used to facilitate exploitation. The absence of known exploits in the wild currently reduces immediate risk but does not diminish the urgency for mitigation. European entities with open-source software adoption and AI initiatives are particularly vulnerable.
Mitigation Recommendations
To mitigate CVE-2025-66580, European organizations should immediately upgrade all instances of Dive to version 0.11.1 or later, which contains the necessary patches to prevent arbitrary JavaScript execution. Until upgrades are complete, restrict access to the application and disable or limit the use of Mermaid diagram rendering features, especially those that accept user-generated content. Implement strict input validation and sanitization on any data fed into Dive, particularly for MCP server configurations and diagram nodes. Educate users about the risks of clicking untrusted or unexpected nodes within diagrams to reduce the likelihood of successful social engineering. Employ endpoint protection solutions capable of detecting and blocking suspicious script execution. Monitor logs and network traffic for unusual activity related to Dive usage. Additionally, consider isolating the application environment or running it within sandboxed containers to limit the blast radius of potential exploitation. Regularly review and update security policies around open-source AI tool usage and integration.
Affected Countries
Germany, France, United Kingdom, Netherlands, Sweden, Finland, Denmark, Ireland
CVE-2025-66580: CWE-94: Improper Control of Generation of Code ('Code Injection') in OpenAgentPlatform Dive
Description
Dive is an open-source MCP Host Desktop Application that enables integration with function-calling LLMs. A critical Stored Cross-Site Scripting (XSS) vulnerability exists in versions prior to 0.11.1 in the Mermaid diagram rendering component. The application allows the execution of arbitrary JavaScript via `javascript:`. An attacker can exploit this to inject a malicious Model Context Protocol (MCP) server configuration, leading to Remote Code Execution (RCE) on the victim's machine when the node is clicked. Version 0.11.1 fixes the issue.
AI-Powered Analysis
Technical Analysis
CVE-2025-66580 is a critical stored cross-site scripting (XSS) vulnerability affecting the OpenAgentPlatform Dive application, an open-source MCP Host Desktop Application designed to integrate with function-calling large language models (LLMs). The vulnerability exists in versions prior to 0.11.1 within the Mermaid diagram rendering component, which improperly handles user-supplied input that includes the 'javascript:' URI scheme. This flaw allows an attacker to inject arbitrary JavaScript code that is stored and later executed when a user interacts with a compromised node in the diagram. The injected JavaScript can modify the Model Context Protocol (MCP) server configuration, effectively enabling remote code execution (RCE) on the victim's machine. This RCE occurs without requiring prior authentication but does require user interaction (clicking the malicious node). The vulnerability is classified under CWE-94 (Improper Control of Generation of Code), highlighting the unsafe handling of dynamic code generation. The CVSS v3.1 score of 9.7 reflects the vulnerability's critical nature, with network attack vector, low attack complexity, no privileges required, but user interaction needed, and complete compromise of confidentiality, integrity, and availability. Although no exploits are currently known in the wild, the potential impact is severe. The issue is resolved in Dive version 0.11.1, which properly sanitizes inputs and restricts execution of arbitrary JavaScript in Mermaid diagrams.
Potential Impact
The impact of CVE-2025-66580 on European organizations is significant due to the potential for remote code execution on endpoints running vulnerable versions of Dive. This can lead to full system compromise, data theft, unauthorized access to sensitive information, and disruption of services. Organizations leveraging Dive for integrating LLMs in their workflows, especially in sectors like technology, research, and AI development, face elevated risks. The vulnerability could be exploited to deploy malware, ransomware, or conduct espionage, affecting confidentiality, integrity, and availability of critical systems. Given the integration with function-calling LLMs, attackers might also manipulate AI-driven processes, causing further operational and reputational damage. The requirement for user interaction (clicking a malicious node) means social engineering or phishing could be used to facilitate exploitation. The absence of known exploits in the wild currently reduces immediate risk but does not diminish the urgency for mitigation. European entities with open-source software adoption and AI initiatives are particularly vulnerable.
Mitigation Recommendations
To mitigate CVE-2025-66580, European organizations should immediately upgrade all instances of Dive to version 0.11.1 or later, which contains the necessary patches to prevent arbitrary JavaScript execution. Until upgrades are complete, restrict access to the application and disable or limit the use of Mermaid diagram rendering features, especially those that accept user-generated content. Implement strict input validation and sanitization on any data fed into Dive, particularly for MCP server configurations and diagram nodes. Educate users about the risks of clicking untrusted or unexpected nodes within diagrams to reduce the likelihood of successful social engineering. Employ endpoint protection solutions capable of detecting and blocking suspicious script execution. Monitor logs and network traffic for unusual activity related to Dive usage. Additionally, consider isolating the application environment or running it within sandboxed containers to limit the blast radius of potential exploitation. Regularly review and update security policies around open-source AI tool usage and integration.
Affected Countries
For access to advanced analysis and higher rate limits, contact root@offseq.com
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2025-12-04T18:53:42.398Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69458084f063e4fadff5e847
Added to database: 12/19/2025, 4:42:44 PM
Last enriched: 12/19/2025, 4:51:13 PM
Last updated: 12/19/2025, 7:02:19 PM
Views: 13
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2025-14962: Cross Site Scripting in code-projects Simple Stock System
MediumCVE-2025-14961: SQL Injection in code-projects Simple Blood Donor Management System
MediumCVE-2025-14960: SQL Injection in code-projects Simple Blood Donor Management System
MediumCVE-2025-14959: SQL Injection in code-projects Simple Stock System
MediumCVE-2025-14958: Heap-based Buffer Overflow in floooh sokol
MediumActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.