# CVE-2026-42138: Dify Vulnerable to Stored XSS via SVG-file upload

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-04T17:34:36.199Z
- Modified: 2026-10-26T19:10:00.163Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- langgenius dify: < 1.13.1; before 1.13.1

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## 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

- CVE List: [CVE-2026-42138](https://www.cve.org/CVERecord?id=CVE-2026-42138), CVE Terms of Use, modified 2026-05-04
- NVD: [CVE-2026-42138](https://nvd.nist.gov/vuln/detail/CVE-2026-42138), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-42138 · Whole record: https://cve.day/CVE-2026-42138.json · Rebuilt by cve.day 2026-11-25T22:59:20.543Z
