ADVISORIES

GitHub Advisory Database

GHSA-w4fj-87j5-f25c

XWiki has Reflected Cross-Site Scripting (XSS) in page history compare

Moderate CVE-2026-40105

Details

Impact

A reflected cross-site scripting vulnerability (XSS) in the compare view between revisions of a page allows executing JavaScript code in the user's browser. If the current user is an admin, this can not only affect the current user but also the confidentiality, integrity and availability of the whole XWiki instance.

Patches

The problem has been patched by properly escaping the URL parameters.

Workarounds

The patch can be applied manually to templates/changesdoc.vm in the deployed WAR.

Attribution

XWiki thanks Mike Cole @mikecole-mg for discovering and reporting this vulnerability.

Affected packages

EcosystemPackageAffected versions
Mavenorg.xwiki.platform:xwiki-platform-web-templates
From 10.4-rc-1 before 16.10.16 (fixed in 16.10.16)
Mavenorg.xwiki.platform:xwiki-platform-web-templates
From 17.0.0-rc-1 before 17.4.8 (fixed in 17.4.8)
Mavenorg.xwiki.platform:xwiki-platform-web-templates
From 17.5.0-rc-1 before 17.10.1 (fixed in 17.10.1)

References