Skip to content
MediumVulnerabilityLLM-specific

CVE-2026-42138: Dify stored XSS via SVG file upload to /api/files/upload

Identifier
CVE-2026-42138
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.

Summary

CVE-2026-42138 affects Dify, an open-source LLM app development platform, in versions prior to 1.13.1. The unauthenticated POST /api/files/upload endpoint accepts an SVG file containing XSS, and the authenticated POST /v1/files/upload endpoint is also vulnerable.

Mitigation

Fixed in version 1.13.1.