Wiki.jsでページ閲覧者のブラウザー上で任意のスクリプトが実行される脆弱性
Summary
Wiki.js 2.5.315より前のバージョンには、ページ内容に保存されたスクリプトが閲覧者のブラウザーで実行される脆弱性があります。書き込み権限を持つ利用者が、Vueのv-slot属性にスクリプトを埋め込むことで発生し、特権利用者が開いた場合は管理操作も実行されるおそれがあります。修正版は2.5.315です。CVSSは8.7で、早めの更新をおすすめします。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Wiki.js 2.5.315より前のバージョンには、ページ内容に保存されたスクリプトが閲覧者のブラウザーで実行される脆弱性があります。書き込み権限を持つ利用者が、Vueのv-slot属性にスクリプトを埋め込むことで発生し、特権利用者が開いた場合は管理操作も実行されるおそれがあります。修正版は2.5.315です。CVSSは8.7で、早めの更新をおすすめします。
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- web github.com
- web security-advisories@github.com
- web security-advisories@github.com