Arbitrary file upload in Wekan - #VU139846
Published: July 28, 2026
Wekan
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary JavaScript in victims' browsers.
The vulnerability exists due to unrestricted upload of file with dangerous type in the file upload validation function isFileValid() when processing attachment upload requests on servers where MIME detection falls back to a user-controlled file type value. A remote user can upload a crafted HTML file while spoofing its MIME type to execute arbitrary JavaScript in victims' browsers.
Exploitation requires user interaction to access the uploaded attachment, and only instances with the API enabled and without the system file command available are vulnerable.