{"id":"CVE-2026-42138","published":"2026-05-04T17:34:36Z","modified":"2026-05-04T18:48:58Z","title":"Dify Vulnerable to Stored XSS via SVG-file upload","vendor":"langgenius","product":"dify","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00337,"percentile":0.19651,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/langgenius/dify/security/advisories/GHSA-cg94-8v83-7hjj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/langgenius/dify/releases/tag/1.13.1","tags":["x_refsource_MISC"]}],"priority":{"score":8.8,"factors":[{"name":"EPSS percentile","points":3.93},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"langgenius","affectedVersions":[{"vendor":"langgenius","product":"dify","versions":["< 1.13.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-04T18:48:50.719111Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-27071","exploited":false,"provenance":"source"}}