CVE-2026-42138: Dify - Stored XSS
- Cve: CVE-2026-42138
- Name: Dify - Stored XSS
- 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.
- Impact: Attackers can execute arbitrary scripts in users' browsers, leading to session hijacking or other malicious actions.
- Remediation: Update to version 1.13.1 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: stored_xss
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00235
- Epss percentile: 0.14301
- Assignee: [email protected]
- Published at: 2026-05-04T18:16:31Z
- Age in days: 204
- Modified at: 2026-10-26T19:10:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-42138
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/langgenius/dify/security/advisories/GHSA-cg94-8v83-7hjj | nvd | 2026-05-04 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/langgenius/dify/security/advisories/GHSA-cg94-8v83-7hjj | nvd | Exploit, Vendor Advisory |
| https://github.com/langgenius/dify/releases/tag/1.13.1 | nvd | Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| langgenius:dify | < 1.13.1 | no | nvd | /v1/products/langgenius/dify |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| langgenius/dify | releases, security_advisory | yes | /v1/repositories/langgenius/dify |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-05-04
- Remote: yes
- Exposed hosts: 4830
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports