XSS in Dify
CVE-2026-21866
Dify is an open-source LLM app development platform. Prior to 1.11.2, Dify is vulnerable to a stored XSS issue when rendering Mermaid diagrams within chats. This occurs because Dify’s default Mermaid configuration uses securityLevel: loose, which allows potentially unsafe content to execute. This vulnerability is fixed in 1.11.2.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.003, 16.8th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Dify
- Langgenius Dify — versions < 1.11.2
Weakness classification (CWE)
References
- https://github.com/langgenius/dify/security/advisories/GHSA-qpv6-75c2-75h4 (Exploit, Vendor Advisory)
- https://github.com/langgenius/dify/pull/29811 (Patch, Issue Tracking)
- https://github.com/langgenius/dify/commit/ae17537470bba417a8971fff705dd82ecb043564 (Patch)