6.9medium
Dify Vulnerable to Stored XSS via SVG-file upload
- Severity
- 6.9medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
Dify is an open-source LLM app development platform. Prior to version 1.13.1, using the method POST /api/files/upload, any unauthenticated user can upload an SVG file with XSS. The method POST /v1/files/upload, which requires authentication through the application API, is also vulnerable. This issue has been patched in version 1.13.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| langgenius dify | < 1.13.1, before 1.13.1 | CVE List, NVD |
All scores
| GitHub_M | 6.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
Dify is an open-source LLM app development platform. Prior to version 1.13.1, using the method POST /api/files/upload, any unauthenticated user can upload an SVG file with XSS. The method POST /v1/files/upload, which requires authentication through the application API, is also vulnerable. This issue has been patched in version 1.13.1.
NVD (es)
Dify es una plataforma de desarrollo de aplicaciones LLM de código abierto. Antes de la versión 1.13.1, utilizando el método POST /api/files/upload, cualquier usuario no autenticado puede cargar un archivo SVG con XSS. El método POST /v1/files/upload, que requiere autenticación a través de la API de la aplicación, también es vulnerable. Este problema ha sido parcheado en la versión 1.13.1.
References
| https://github.com/langgenius/dify/security/advisories/GHSA-cg94-8v83-7hjj | exploit, vendor-advisory | |
| https://github.com/langgenius/dify/releases/tag/1.13.1 | release-notes | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42138 changed 2026-05-04 | CVE Terms of Use |
| NVD | CVE-2026-42138 changed 2026-10-26 | Public domain |