CVE-2026-42138
Unauthenticated SVG File Upload XSS in Dify
Publication date: 2026-05-04
Last updated on: 2026-05-04
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| dify | dify | to 1.13.1 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in Dify, an open-source LLM app development platform, prior to version 1.13.1. It allows any unauthenticated user to upload an SVG file containing malicious code via the POST /api/files/upload method, leading to Cross-Site Scripting (XSS). Additionally, the authenticated method POST /v1/files/upload is also vulnerable. The issue has been fixed in version 1.13.1.
How can this vulnerability impact me? :
The vulnerability can allow attackers to execute malicious scripts in the context of the affected application by uploading SVG files with embedded XSS payloads. This can lead to unauthorized actions, data theft, session hijacking, or other malicious activities without requiring authentication.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, you should upgrade Dify to version 1.13.1 or later, where the issue has been patched.