Submit #768028: Bytedesk <=1.3.9 Unrestricted Upload of File with Dangerous Type (CWE-434)info

TitleBytedesk <=1.3.9 Unrestricted Upload of File with Dangerous Type (CWE-434)
DescriptionThe authenticated endpoint POST /api/v1/upload/file accepts SVG files with embedded <script> tags. Although isAllowedFileType() permits image/svg+xml, the server stores the file without sanitizing its contents. An attacker with a valid token uploads a malicious SVG containing JavaScript; the returned fileUrl serves the file directly. When a victim visits the URL, the browser executes the script, resulting in Stored XSS.
Source⚠️ https://github.com/Bytedesk/bytedesk/issues/18
User
 ZAST.AI (UID 87884)
Submission02/26/2026 06:54 (5 months ago)
Moderation03/07/2026 21:23 (10 days later)
StatusAccepted
VulDB entry349726 [Bytedesk up to 1.3.9 SVG File UploadRestController.java uploadFile unrestricted upload]
Points20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!