NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

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

mediumCVSS 4.0 6.5 · 3.1 6.1GHSA-w4fj-87j5-f25c

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

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 entries