{"id":"CVE-2026-21866","aliases":["CVE-2026-21866"],"related":[],"kind":"vulnerability","state":"published","title":"Dify - Stored XSS in chat","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Dify es una plataforma de desarrollo de aplicaciones LLM de código abierto. Antes de la 1.11.2, Dify es vulnerable a un problema de XSS almacenado al renderizar diagramas Mermaid dentro de los chats. Esto ocurre porque la configuración predeterminada de Mermaid de Dify utiliza securityLevel: loose, lo que permite la ejecución de contenido potencialmente inseguro. Esta vulnerabilidad está corregida en la 1.11.2.","source":"nvd"}],"published":"2026-03-03T21:42:25.311Z","modified":"2026-06-17T10:19:03.427Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":5.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 1.11.2","status":"affected"}],"vendor":"langgenius","product":"dify","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.11.2"}],"vendor":"dify","product":"dify","cpe":"cpe:2.3:a:dify:dify:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/langgenius/dify/security/advisories/GHSA-qpv6-75c2-75h4","tags":["exploit","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/langgenius/dify/pull/29811","tags":["issue-tracking","patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/langgenius/dify/commit/ae17537470bba417a8971fff705dd82ecb043564","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-03-04T21:17:56.778Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-21866","url":"https://www.cve.org/CVERecord?id=CVE-2026-21866","licence":"CVE Terms of Use","modified":"2026-03-04T21:18:08.260Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-21866","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-21866","licence":"Public domain","modified":"2026-06-17T10:19:03.427Z"}],"updatedAt":"2026-11-25T22:59:15.138Z","epss":{"score":0.00248,"percentile":0.17261,"date":"2026-12-01T12:00:22.000Z"}}