{"id":"CVE-2026-21866","published":"2026-03-03T21:42:25Z","modified":"2026-03-04T21:18:08Z","title":"Dify - Stored XSS in chat","vendor":"langgenius","product":"dify","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00348,"percentile":0.20775,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/langgenius/dify/security/advisories/GHSA-qpv6-75c2-75h4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/langgenius/dify/pull/29811","tags":["x_refsource_MISC"]},{"url":"https://github.com/langgenius/dify/commit/ae17537470bba417a8971fff705dd82ecb043564","tags":["x_refsource_MISC"]}],"priority":{"score":7.7,"factors":[{"name":"EPSS percentile","points":4.15},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"langgenius","affectedVersions":[{"vendor":"langgenius","product":"dify","versions":["< 1.11.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-04T21:17:56.778472Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-9325","exploited":false,"provenance":"source"}}