CVE-2025-58747

Dify is an LLM application development platform. In Dify versions through 1.9.1, the MCP OAuth component is vulnerable to cross-site scripting when a victim connects to an attacker-controlled remote MCP server. The vulnerability exists in the OAuth flow implementation where the authorization_url provided by a remote MCP server is directly passed to window.open without validation or sanitization. An attacker can craft a malicious MCP server that returns a JavaScript URI (such as javascript:alert(1)) in the authorization_url field, which is then executed when the victim attempts to connect to the MCP server. This allows the attacker to execute arbitrary JavaScript in the context of the Dify application.
Configurations

Configuration 1 (hide)

cpe:2.3:a:langgenius:dify:*:*:*:*:*:node.js:*:*

History

10 Nov 2026, 13:10

Type Values Removed Values Added
Summary
  • (es) Dify es una plataforma de desarrollo de aplicaciones LLM. En las versiones de Dify hasta la 1.9.1 incluida, el componente OAuth de MCP es vulnerable a Cross-site Scripting (XSS) cuando una víctima se conecta a un servidor MCP remoto controlado por un atacante. La vulnerabilidad existe en la implementación del flujo de OAuth, donde la ’authorization_url’ proporcionada por un servidor MCP remoto se pasa directamente a ’window.open’ sin validación ni saneamiento. Un atacante puede crear un servidor MCP malicioso que devuelve una URI de JavaScript (como ’javascript_protocol: alert( 1 )’) en el campo ’authorization_url’, que luego se ejecuta cuando la víctima intenta conectarse al servidor MCP. Esto permite al atacante ejecutar JavaScript arbitrario en el contexto de la aplicación Dify.

29 Oct 2025, 19:16

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 6.1
First Time Langgenius
Langgenius dify
CPE cpe:2.3:a:langgenius:dify:*:*:*:*:*:node.js:*:*
References () https://github.com/langgenius/dify/commit/bfda4ce7e6f39d43a4420e97e23a18edcfe3e3d3 - () https://github.com/langgenius/dify/commit/bfda4ce7e6f39d43a4420e97e23a18edcfe3e3d3 - Patch
References () https://github.com/langgenius/dify/security/advisories/GHSA-9jch-j9qf-vqfw - () https://github.com/langgenius/dify/security/advisories/GHSA-9jch-j9qf-vqfw - Exploit, Vendor Advisory

17 Oct 2025, 16:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-10-17 16:15

Updated : 2026-11-10 13:10


NVD link : CVE-2025-58747

Mitre link : CVE-2025-58747

CVE.ORG link : CVE-2025-58747


JSON object : View

Products Affected

langgenius

  • dify
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')