CVE-2026-40105: XWiki has Reflected Cross-Site Scripting (XSS) in page history compare
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.
Published Apr 14, 2026 · Updated Apr 27, 2026
Affected packages
org.xwiki.platform:xwiki-platform-web-templates
- Ecosystem
- Maven
- Affected
- >= 10.4-rc-1, < 16.10.16
- Fixed in
- 16.10.16
- Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-web-templates
org.xwiki.platform:xwiki-platform-web-templates
- Ecosystem
- Maven
- Affected
- >= 17.0.0-rc-1, < 17.4.8
- Fixed in
- 17.4.8
- Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-web-templates
org.xwiki.platform:xwiki-platform-web-templates
- Ecosystem
- Maven
- Affected
- >= 17.5.0-rc-1, < 17.10.1
- Fixed in
- 17.10.1
- Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-web-templates
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to mikecole-mg.
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-w4fj-87j5-f25c
- https://github.com/xwiki/xwiki-platform/commit/3c8a2ec985641367015c2db937574fcd360c788c
- https://jira.xwiki.org/browse/XWIKI-23472
- https://nvd.nist.gov/vuln/detail/CVE-2026-40105
- https://github.com/advisories/GHSA-w4fj-87j5-f25c
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-24128
XWiki Affected by Reflected Cross-Site Scripting (XSS) in Error Messages
medium6.5Jan 23, 2026CVE-2025-66472
XWiki vulnerable to a reflected XSS via xredirect parameter in DeleteApplication
medium6.5Dec 10, 2025CVE-2025-32430
XWiki allows Reflected XSS in two templates
medium5.3Aug 5, 2025CVE-2024-43401
In XWiki Platform, payloads stored in content is executed when a user with script/programming right edit them
critical9.0Aug 19, 2024CVE-2024-41947
XWiki Platform vulnerable to Cross-Site Scripting (XSS) through conflict resolution
critical9.0Jul 31, 2024
