CVE-2026-120697: Wiki.js: Stored XSS via Vue Slot Directives in Page Content

Published Nov 16, 2026
·
Updated

Wiki.js is an open source wiki app built on Node.js. Prior to 2.5.315, an authenticated user with write:pages can store JavaScript expressions in the v-slot:tabs or v-slot:content attributes of page HTML because server/modules/rendering/html-security/renderer.js adds those executable Vue directives to DOMPurify's allowlist. The sanitized output is inserted as rendered page HTML and later compiled by the Vue 2 runtime compiler, so the expressions execute in the Wiki.js origin when another user views the page even when the author lacks write:scripts and administrative permissions. The script runs with the viewer's browser session and can read same-origin data, modify displayed content, present phishing content, or perform actions available to that viewer, including privileged GraphQL operations when a privileged user opens the page. This issue is fixed in version 2.5.315.

Affected Software

1 affected component
Wiki.js Wiki.js<2.5.315

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.5.315

Event History

Nov 16, 2026
CVE Published
via MITRE·09:20 PM
Data Sourced
via MITRE·09:20 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue, and who is at risk from a malicious page?

An authenticated user with the write:pages permission can exploit it; write:scripts or administrative permissions are not required. Any user who views a malicious page is exposed, with greater impact if a privileged user opens it because the script can perform actions available to that user's session.

2

What must occur for the stored script to run?

The attacker must save crafted page HTML containing JavaScript expressions in v-slot:tabs or v-slot:content attributes. The payload executes later when another user views the rendered page, because the page HTML is compiled by the Vue 2 runtime compiler.

3

Which versions are affected and what is the remediation?

Wiki.js versions prior to 2.5.315 are affected. Upgrade to version 2.5.315, which removes the vulnerable behavior.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203