Cross-site scripting in Wiki.js - #VU165827
Published: November 11, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary JavaScript in the wiki origin, steal session tokens, and perform actions as victims, including administrators.
The vulnerability exists due to improper validation of URL schemes in navigation.updateTree and the sidebar component nav-sidebar.vue when storing and rendering navigation link targets. A remote user can use the manage:navigation or manage:system permission to store a link target containing javascript:... and induce a victim to click the sidebar link, executing JavaScript that can read the jwt cookie and take over the victim's session.
The global sidebar displays the malicious link on every page for every viewer, including guests.