Cross-site scripting in Wiki.js - CVE-2021-43855
Published: December 26, 2021 / Updated: April 28, 2026
Wiki.js
Requarks.io
Description
The vulnerability allows a remote user to execute arbitrary JavaScript in the browser of another user.
The vulnerability exists due to cross-site scripting in the file upload handling for SVG files when processing a crafted SVG upload sent with a fake MIME type. A remote user can upload a crafted SVG file using a custom request to execute arbitrary JavaScript in the browser of another user.
Scripts execute when the uploaded SVG is viewed directly by other users, but not when it is loaded inside a page via normal tags.