THREATPORT/VULNERABILITY/CVE-2025-58747
MEDIUM SEVERITY

CVE-2025-58747

Dify vulnerability

CVSS
6.1
EPSS
5.3%
EPSS pct
92th
Exploited
No known
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.
Affected vendor
Langgenius
Affected product
Dify
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness type (CWE)
  • CWE-79 — Cross-Site Scripting (XSS)
Published
2025-10-17

Risk analysis

Based on its CVSS vector, this vulnerability is exploitable over the network, low attack complexity, requiring no privileges, user interaction. Successful exploitation leads to low impact to confidentiality, low impact to integrity.

Its EPSS score of 5.3% reflects a lower probability of exploitation activity in the wild over the next 30 days, placing it above 92% of all scored CVEs.

Check your external exposure to CVE-2025-58747

  • Confirm whether Langgenius Dify is running on any internet-facing host or subdomain.
  • Match discovered service fingerprints against the version affected by CVE-2025-58747.
  • Prioritise remediation if the asset is public, business-critical, or near authentication/payment flows.

How ThreatPort helps with CVE-2025-58747

ThreatPort's external attack surface scanner checks your internet-facing assets — agentlessly, from the outside in — for the exposed services and versions that CVE-2025-58747 affects, then prioritises the finding by real risk using CISA KEV and FIRST.org EPSS.

Run a free external exposure scan

Are you exposed to CVE-2025-58747?

Run an instant, non-intrusive external scan to check your attack surface for CVE-2025-58747.

Start free scan

No credit card. Agentless.