Read the docs
TI-2026-30470 Aliases CVE-2026-42138

Dify Vulnerable to Stored XSS via SVG-file upload

Priority HIGH 70CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Cross-site scripting
Confidentiality · integrity · availability
None · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-79.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00235 14th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed dify (langgenius): 1.13.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
langgeniusdifybefore 1.13.11.13.1Patch availableCNA
  • dify Vendorlanggenius Affected before 1.13.1 Fixed in 1.13.1 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:langgenius:dify:*:*:*:*:*:node.js:*:*before 1.13.1Vulnerablelanggenius
  • cpe:2.3:a:langgenius:dify:*:*:*:*:*:node.js:*:* Versions before 1.13.1 Vulnerable ·langgenius

Remediation

  • Fix · CNA dify (langgenius) Fixed in 1.13.1

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-42138

References

  • TI-2025-35265 Default credentials in Dify thru 1.5.1. CVSS 3.1CRITICAL 9.8
  • TI-2025-03045 Unsanitized Input in langgenius/dify CVSS 3.1HIGH 7.2
  • TI-2025-01548 Admin account takeover through weak Pseudo-Random number generator used in generating… CVSS 3.1HIGH 8.8
  • TI-2024-11840 Authentication Bypass in langgenius/dify CVSS 3.0HIGH 8.1
  • TI-2024-11170 Improper Restriction of Excessive Authentication Attempts in langgenius/dify CVSS 3.1HIGH 8.1
  • TI-2024-09502 Code Injection in langgenius/dify CVSS 3.1HIGH 7.2
See all 26 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences