CVE-2026-120697
Received Received - Intake

Stored XSS in Wiki.js via Vue Directives

Vulnerability report for CVE-2026-120697, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-16

Last updated on: 2026-11-16

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-16
Last Modified
2026-11-16
Generated
2026-11-17
AI Q&A
2026-11-17
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
requarks wiki.js 2.5.315

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

Wiki.js versions before 2.5.315 allow authenticated users with write:pages permission to inject JavaScript expressions into page HTML via v-slot:tabs or v-slot:content attributes. These expressions are added to DOMPurify's allowlist and later compiled by Vue 2 runtime compiler, executing in the viewer's browser session when the page is accessed. This bypasses normal permission checks and allows script execution even without write:scripts or admin rights.

Detection Guidance

Detecting this vulnerability requires checking if your Wiki.js instance is running a vulnerable version (prior to 2.5.315). Inspect the version in your package.json or run npm list wiki.js. Additionally, review page content for suspicious JavaScript expressions in v-slot:tabs or v-slot:content attributes.

Impact Analysis

An attacker could read same-origin data, modify displayed content, present phishing pages, or perform actions available to the victim user. If a privileged user views the page, the script could execute privileged GraphQL operations, potentially leading to full system compromise or data theft.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating GDPR's integrity and confidentiality requirements and HIPAA's security rules for protected health information. Organizations using affected Wiki.js versions may face compliance violations and potential regulatory penalties.

Mitigation Strategies

Upgrade Wiki.js to version 2.5.315 or later immediately. Remove any unauthorized JavaScript expressions from page content. Restrict write:pages permissions to trusted users only. Monitor for unusual activity or unauthorized changes.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-120697. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...