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.
References
| Link | Resource |
|---|---|
| https://github.com/langgenius/dify/commit/ae17537470bba417a8971fff705dd82ecb043564 | Patch |
| https://github.com/langgenius/dify/pull/29811 | Issue Tracking Patch |
| https://github.com/langgenius/dify/security/advisories/GHSA-qpv6-75c2-75h4 | Exploit Vendor Advisory |
Configurations
History
No history.
Information
Published : 2026-03-03 22:16
Updated : 2026-03-05 21:24
NVD link : CVE-2026-21866
Mitre link : CVE-2026-21866
CVE.ORG link : CVE-2026-21866
JSON object : View
Products Affected
dify
- dify
CWE
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
