{"id":"CVE-2026-120697","kind":"vulnerability","aliases":["CVE-2026-120697"],"related":[],"title":"Wiki.js: stored script in pages runs in viewers' browsers","description":"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.","summary":"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.","severity":"high","cvss":8.7,"epss":null,"exploited":false,"exploited_at":null,"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"],"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.\n- 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`.","status":"open","published_at":"2026-11-16T22:18:14+00:00","first_seen_at":"2026-11-16T22:39:13+00:00","triaged_at":"2026-11-16T22:40:36+00:00","updated_at":"2026-11-16T22:40:36+00:00","category":"runtime","confidence":0.8,"triage":{"at":"2026-11-16T22:40:36Z","model":"claude-haiku-5-5","output":{"fix":"- Wiki.js: upgrade to `2.5.315`.","reach":"internet","title":"Wiki.js: stored script in pages runs in viewers' browsers","impact":"high","summary":"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.","audience":"businesses","category":"runtime","nicknames":[],"who_cares":["wiki.js","self-hosted","node.js"],"confidence":0.8,"fix_status":"available","needs_auth":"yes","worst_case":"Viewer's session hijacked; privileged actions run when admin views the page","analyst_note":"","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.\n- Review which accounts hold the `write:pages` permission, since those are the accounts that can plant the payload.","plain_action":"","product_name":"wiki.js","needs_analyst":false,"not_affected_if":["managed-hosting","auth-required"],"who_is_affected":"Self-hosted Wiki.js instances running a version before 2.5.315 are exposed when users with page-write permission can create or edit pages that other users view. Instances where only trusted administrators can write pages carry lower practical risk, but the fix still applies. Managed hosting is handled by the provider, and the sources do not say whether any hosted offering is affected.","user_interaction":"yes","product_ecosystem":"npm","needs_special_setup":"no","severity_if_unknown":"high"},"cost_usd":0.000763,"input_tokens":4763,"output_tokens":574,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-120697':12A,15A '-2026':11A,14A '2':136C '2.5.315':84C,209C 'act':59B 'action':187C 'add':112C 'administr':68B,161C 'allow':38B 'allowlist':120C 'anoth':44B,148C 'app':78C 'attribut':106C 'authent':86C 'author':156C 'avail':188C 'browser':9A,170C 'built':79C 'compil':132C,138C 'content':105C,181C,184C 'cve':10A,13A 'data':178C 'direct':34B,116C 'display':180C 'dompurifi':118C 'even':153C 'execut':42B,114C,142C 'express':41B,94C,141C 'fix':206C 'graphql':194C 'host':21B 'html':109C,129C 'includ':63B,192C 'insert':125C 'issu':204C 'javascript':93C 'lack':157C 'later':131C 'let':24B 'modifi':179C 'node.js':17B,81C 'open':69B,75C,200C 'oper':65B,195C 'origin':146C,177C 'output':123C 'page':5A,29B,48B,71B,90C,108C,128C,152C,202C 'page-writ':28B 'perform':186C 'permiss':31B,162C 'phish':183C 'present':182C 'prior':82C 'privileg':64B,193C,198C 'read':174C 'render':127C 'run':6A,51B,165C 'runtim':18B,137C 'same-origin':175C 'sanit':37B,122C 'script':3A,50B,159C,164C 'self':20B 'self-host':19B 'server/modules/rendering/html-security/renderer.js':111C 'session':56B,171C 'slot':99C,104C 'sourc':76C 'store':2A,32B,92C 'tab':100C 'user':26B,45B,62B,87C,149C,199C 'v':98C,103C 'v-slot':97C,102C 'version':208C 'view':46B,150C 'viewer':8A,54B,168C,191C 'vue':33B,115C,135C 'wiki':77C 'wiki.js':1A,16A,22B,23B,72C,145C 'write':30B,89C,158C","nicknames":[],"mitigations":[],"who_affected":"Self-hosted Wiki.js instances running a version before 2.5.315 are exposed when users with page-write permission can create or edit pages that other users view. Instances where only trusted administrators can write pages carry lower practical risk, but the fix still applies. Managed hosting is handled by the provider, and the sources do not say whether any hosted offering is affected.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":["wikijs"],"ptokens":["wikijs"],"labels":["high","nodejs","npm","runtime","selfhosted","wikijs"],"campaign_type":null,"search_a":"'-120697':12A,15A '-2026':11A,14A 'browser':9A 'cve':10A,13A 'page':5A 'run':6A 'script':3A 'store':2A 'viewer':8A 'wiki.js':1A,16A","search_b":"'act':59B 'administr':68B 'allow':38B 'anoth':44B 'direct':34B 'execut':42B 'express':41B 'host':21B 'includ':63B 'let':24B 'node.js':17B 'open':69B 'oper':65B 'page':29B,48B,71B 'page-writ':28B 'permiss':31B 'privileg':64B 'run':51B 'runtim':18B 'sanit':37B 'script':50B 'self':20B 'self-host':19B 'session':56B 'store':32B 'user':26B,45B,62B 'view':46B 'viewer':54B 'vue':33B 'wiki.js':22B,23B 'write':30B","search_c":"'2':136C '2.5.315':84C,209C 'action':187C 'add':112C 'administr':161C 'allowlist':120C 'anoth':148C 'app':78C 'attribut':106C 'authent':86C 'author':156C 'avail':188C 'browser':170C 'built':79C 'compil':132C,138C 'content':105C,181C,184C 'data':178C 'direct':116C 'display':180C 'dompurifi':118C 'even':153C 'execut':114C,142C 'express':94C,141C 'fix':206C 'graphql':194C 'html':109C,129C 'includ':192C 'insert':125C 'issu':204C 'javascript':93C 'lack':157C 'later':131C 'modifi':179C 'node.js':81C 'open':75C,200C 'oper':195C 'origin':146C,177C 'output':123C 'page':90C,108C,128C,152C,202C 'perform':186C 'permiss':162C 'phish':183C 'present':182C 'prior':82C 'privileg':193C,198C 'read':174C 'render':127C 'run':165C 'runtim':137C 'same-origin':175C 'sanit':122C 'script':159C,164C 'server/modules/rendering/html-security/renderer.js':111C 'session':171C 'slot':99C,104C 'sourc':76C 'store':92C 'tab':100C 'user':87C,149C,199C 'v':98C,103C 'v-slot':97C,102C 'version':208C 'view':150C 'viewer':168C,191C 'vue':115C,135C 'wiki':77C 'wiki.js':72C,145C 'write':89C,158C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-09-21T07:51:15+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-120697","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120697","severity":null,"published_at":"2026-11-16T22:18:14+00:00","modified_at":"2026-11-16T22:18:14+00:00","first_seen_at":"2026-11-16T22:39:13+00:00","fetched_at":"2026-11-16T22:39:13+00:00","note":null}],"documents":[{"id":172847,"url":"https://github.com/requarks/wiki/commit/1161ddc6e6f4388a15d90278d55b099248ce6e79","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":172848,"url":"https://github.com/requarks/wiki/releases/tag/v2.5.315","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"},{"id":172849,"url":"https://github.com/requarks/wiki/security/advisories/GHSA-98c8-px3r-68c6","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-09-21T07:51:15+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}