---
id: "CVE-2026-120697"
page: "https://infrastack.ai/live/CVE-2026-120697"
kind: "vulnerability"
aliases: ["CVE-2026-120697"]
title: "Wiki.js: stored script in pages runs in viewers' browsers"
severity: "high"
cvss: 8.7
epss: null
exploited: false
status: "open"
category: "runtime"
products: [{"name": "wiki.js", "fixed": [], "affected": "", "ecosystem": "npm"}]
ecosystems: ["npm"]
tags: ["node.js", "runtime", "self-hosted", "wiki.js"]
not_affected_if: ["auth-required", "managed-hosting"]
published_at: "2026-11-16T22:18:14+00:00"
first_seen_at: "2026-11-16T22:39:13+00:00"
updated_at: "2026-11-16T22:40:36+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-120697", "first_seen_at": "2026-11-16T22:39:13+00:00"}]
exploit_sources: []
---

# Wiki.js: stored script in pages runs in viewers' browsers

Link for people: https://infrastack.ai/live/CVE-2026-120697 (this .md is for agents)

Wiki.js lets a user with page-write permission store Vue directives that the sanitizer allows, so the expressions execute when another user views the page. The script runs with the viewer's session and can act as that user, including privileged operations when an administrator opens the page.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- npm:wiki.js affected range not listed fixed no fixed version listed

## How to check

- Check the Wiki.js version with `package.json` in the install directory or the admin dashboard; versions below `2.5.315` are affected.
- Review which accounts hold the `write:pages` permission, since those are the accounts that can plant the payload.

## Fix

- Wiki.js: upgrade to `2.5.315`.

## Timeline

- 2026-11-16T22:39:13+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-120697

## Documents

- [advisory] Vendor advisory: github.com https://github.com/requarks/wiki/security/advisories/GHSA-98c8-px3r-68c6
- [fix] Patch: github.com https://github.com/requarks/wiki/commit/1161ddc6e6f4388a15d90278d55b099248ce6e79
- [fix] Release notes: github.com https://github.com/requarks/wiki/releases/tag/v2.5.315

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
