SB20260727382 - Cross-site scripting in Dify
Published: July 27, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 vulnerability.
1) Cross-site scripting (CVE-ID: CVE-2026-21866)
CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/U:Clear
The vulnerability allows a remote user to disclose sensitive information.
The vulnerability exists due to cross-site scripting in the Mermaid diagram rendering component when rendering Mermaid diagrams within chat conversations. A remote user can create a malicious chat containing a javascript: payload to disclose sensitive information.
User interaction is required to click the generated element in a shared chat.
Remediation
Install update from vendor's website.