Cross-site scripting in Dify - CVE-2025-58747

 

Cross-site scripting in Dify - CVE-2025-58747

Published: July 28, 2026


Vulnerability identifier: #VU139840
CSH Severity: Medium
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2025-58747
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary script code in the victim's browser.

The vulnerability exists due to cross-site scripting in the MCP OAuth flow when opening an authorization URL from an attacker-controlled remote MCP server. A remote attacker can provide a specially crafted authorization URL to execute arbitrary script code in the victim's browser.

User interaction is required when the victim connects to an attacker-controlled remote MCP server.


Affected software

Dify

How to mitigate CVE-2025-58747

Install security update from vendor's website.

Dify - update to 1.8.0

External References

Related Security Bulletins