Servers and applications
CVE-2026-42138
Stored XSS via SVG-file upload
- Severity
- Medium 6.9
- Published
- 20 Apr 2026
- Last changed
- 26 Oct 2026
- Added to UpHeron
- 1 Nov 2026
- Fixed in
- 1.13.1
- Exploit chance
- 0.2% in the next 30 daysHigher than 14% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- Cross-site scripting (CWE-79)
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Change some data
- CVSS vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X- Also known as
- GHSA-cg94-8v83-7hjj
- Sources
- NVD, Project advisories (GitHub)
Description
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.
Performing actions on behalf of a user; session theft when AT stored in Local Storage (or in cookie w/o HttpOnly), etc.
Affected software
| Software | Affected versions |
|---|---|
DifyServers and applications · cpe:a:langgenius:dify |
|
DifyServers and applications · github:langgenius/dify |
|
About Dify
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
- GitHub stars
- 161,177GitHub, 15 Nov 2026
- Forks
- 25,501GitHub, 15 Nov 2026
- Latest release
- 1.19.0GitHub, 15 Nov 2026
- Released
- 4 Nov 2026GitHub
- First published on GitHub
- 12 Apr 2023GitHub
Vulnerabilities in Dify
- In our list
- 42
- Published in the last 12 months
- 21
- Critical, last 12 months
- 3
- High, last 12 months
- 7
- Known exploited
- 0
- GHSA-6j8g-rp8v-55vrPer-IP Rate Limit Bypass via Spoofable X-Forwarded-For and CF-Connecting-IP HeadersMedium 6.5 14 Nov 2026
- CVE-2026-58141Dify < 1.15.0 SSRF Protection Bypass via Remote-Files EndpointsHigh 7.2 6 Nov 2026
- CVE-2026-123135langgenius dify Sandbox Run __init__.py hard-coded credentialsMedium 5.3 5 Nov 2026
- CVE-2026-105761IDOR in AppMCPServer PUT Endpoint Allows Modification of Other Apps' MCP ServersHigh 7.1 19 Aug 2026
- GHSA-9c9q-5rj5-mjj2Cross-Tenant File Preview via Unscoped Console `file_id`High 7.7 15 Jul 2026
- GHSA-fj5w-7rc8-3f3fCross-Tenant External API Usage EnumerationMedium 4.3 15 Jul 2026
References
- NVD https://nvd.nist.gov/vuln/detail/CVE-2026-42138
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-42138
- GitHub Advisory Database https://github.com/advisories/GHSA-cg94-8v83-7hjj
- github.com https://github.com/langgenius/dify/security/advisories/GHSA-cg94-8v83-7hjj