CVE-2026-40105: XWiki has Reflected Cross-Site Scripting (XSS) in its page history compare functionality
### 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](https://github.com/xwiki/xwiki-platform/commit/3c8a2ec985641367015c2db937574fcd360c788c#diff-a5e75a4e3820a63c02a32666dda67c73ee7885ab8e7f67e52cfcb3be5a13326e) 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 Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2026-40105?
CVE-2026-40105 is a reflected cross-site scripting vulnerability that can significantly impact the confidentiality, integrity, and availability of a system if exploited.
How do I fix CVE-2026-40105?
To fix CVE-2026-40105, upgrade to the recommended versions of the affected package: org.xwiki.platform:xwiki-platform-web-templates version 17.10.1, 17.4.8, or 16.10.16.
Who is affected by CVE-2026-40105?
CVE-2026-40105 affects users of the org.xwiki.platform:xwiki-platform-web-templates package within the specified version range.
What is the impact of exploiting CVE-2026-40105?
Exploiting CVE-2026-40105 can allow attackers to execute arbitrary JavaScript code in the user's browser, potentially compromising sensitive information.
Is there any workaround for CVE-2026-40105?
There are no known workarounds for CVE-2026-40105; applying the patch is the best course of action.