CVE-2025-58747 - CVE House
Back to Database
Status published Low CVE-2025-58747

Dify MCP OAuth Flow Vulnerable to XSS

Vulnerability Description

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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2025-58747

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

dify
Vulnerable Versions:
<= 1.9.1

Timeline

Official Publish: October 17th, 2025
Last Modified: October 17th, 2025
Added to House: July 22nd, 2026

CVSS Vectors

Weaknesses (CWE)