Cross-site scripting in Dify - CVE-2026-42138
Published: July 27, 2026
Dify
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary script in a victim's browser.
The vulnerability exists due to cross-site scripting in the file upload handling and served uploaded SVG content when processing uploaded SVG files. A remote attacker can upload a specially crafted SVG file and lure a victim into following the returned source_url to execute arbitrary script in a victim's browser.
The uploaded file can be retrieved through the returned source_url without authentication.