Wiki
Wiki.js: Stored XSS via Vue Slot Directives in Page Content
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.5.315
Fixed in 2.5.315
Mitigation
Upgrade wiki to 2.5.315 or later.
References
- Vendor advisory github.com/requarks/wiki/security/advisories/G…
- Patch github.com/requarks/wiki/commit/1161ddc6e6f438…
- Release notes github.com/requarks/wiki/releases/tag/v2.5.315
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.