CVE-2026-40105: XWiki has Reflected Cross-Site Scripting (XSS) in its page history compare functionality

Published Apr 14, 2026
·
Updated

### 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

6 affected componentsFixes available
maven/org.xwiki.platform:xwiki-platform-web-templates>=17.5.0-rc-1<17.10.1
17.10.1
maven/org.xwiki.platform:xwiki-platform-web-templates>=17.0.0-rc-1<17.4.8
17.4.8
maven/org.xwiki.platform:xwiki-platform-web-templates>=10.4-rc-1<16.10.16
16.10.16
XWiki xwiki>=10.4<16.10.16
XWiki xwiki>=17.0.0<17.4.8
XWiki xwiki>=17.5.0<17.10.1

Event History

Apr 14, 2026
Advisory Published
via GitHub·10:33 PM
Data Sourced
via GitHub·10:33 PM
DescriptionWeaknessAffected Software
Apr 15, 2026
CVE Published
via MITRE·12:07 AM
Data Sourced
via MITRE·12:07 AM
DescriptionWeakness
Data Sourced
via NVD·04:17 AM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203