CVE-2026-42138
Received Received - Intake
Unauthenticated SVG File Upload XSS in Dify

Publication date: 2026-05-04

Last updated on: 2026-05-04

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-04
Last Modified
2026-05-04
Generated
2026-05-07
AI Q&A
2026-05-05
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
dify dify to 1.13.1 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
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.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart