XSS in Langgenius Dify
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.057 (92.8th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 93rd percentile — 92.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.053 · newest: 0.057 · change: +0.004
Affected products
- Langgenius Dify — versions <= 1.9.1
Weakness classification (CWE)
References
- github.com/langgenius/dify/security/advisories/GHSA-9jch-j9qf-vqfw (Exploit, Vendor Advisory)
- github.com/langgenius/dify/commit/bfda4ce7e6f39d43a4420e97e23a18edcfe3e3d3 (Patch)
Frequently asked questions
- What is CVE-2025-58747?
- CVE-2025-58747 is a medium-severity vulnerability in Langgenius Dify, classified under Cross-site Scripting. CVSS score: 6.1/10. Published 2025-10-17.
- How severe is CVE-2025-58747?
- Medium severity. CVSS v3 base score is 6.1 out of 10.