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 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.
Other sources
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Versions 10.4-rc-1, through 16.10.15, 17.0.0-rc-1, through 17.4.7 and 17.5.0-rc-1 through 17.10.0 contain a reflected cross-site scripting vulnerability (XSS) in the comparison 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. If developers are unable to update immediately, they can apply the patch manually to templates/changesdoc.vm in the deployed WAR.
— MITRE
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.