Skip to content
MediumVulnerabilityLLM-specific

CVE-2025-58747: Dify MCP OAuth cross-site scripting via remote server authorization URL

Identifier
CVE-2025-58747
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
6.5%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

CVE-2025-58747 affects Dify versions through 1.9.1. Its MCP OAuth component passes the authorization_url from a remote MCP server directly to window.open without validation or sanitization. An attacker-controlled MCP server can return a javascript: URI in that field, which runs when a victim connects, executing arbitrary JavaScript in the Dify application context.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.