CVE-2026-42138
JSON

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 packageVersionsReported by
langgenius dify< 1.13.1, before 1.13.1CVE List, NVD

All scores

GitHub_M6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

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

Sources

SourceRecordLicence
CVE ListCVE-2026-42138 changed 2026-05-04CVE Terms of Use
NVDCVE-2026-42138 changed 2026-10-26Public domain