{"id":"CVE-2026-40105","aliases":["CVE-2026-40105","GHSA-w4fj-87j5-f25c"],"related":[],"kind":"vulnerability","state":"published","title":"XWiki has Reflected Cross-Site Scripting (XSS) in its page history compare functionality","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nA 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.\n\n### Patches\nThe problem has been patched by properly escaping the URL parameters.\n\n### Workarounds\nThe [patch](https://github.com/xwiki/xwiki-platform/commit/3c8a2ec985641367015c2db937574fcd360c788c#diff-a5e75a4e3820a63c02a32666dda67c73ee7885ab8e7f67e52cfcb3be5a13326e) can be applied manually to `templates/changesdoc.vm` in the deployed WAR.\n\n### Attribution\n\nXWiki thanks Mike Cole @mikecole-mg for discovering and reporting this vulnerability.","format":"markdown","source":"ghsa"},{"lang":"es","text":"XWiki Platform es una plataforma wiki genérica que ofrece servicios en tiempo de ejecución para aplicaciones construidas sobre ella. Las versiones 10.4-rc-1, hasta la 16.10.15, 17.0.0-rc-1, hasta la 17.4.7 y 17.5.0-rc-1 hasta la 17.10.0 contienen una vulnerabilidad de cross-site scripting (XSS) reflejado en la vista de comparación entre revisiones de una página que permite ejecutar código JavaScript en el navegador del usuario. Si el usuario actual es un administrador, esto no solo puede afectar al usuario actual, sino también la confidencialidad, integridad y disponibilidad de toda la instancia de XWiki. Si los desarrolladores no pueden actualizar inmediatamente, pueden aplicar el parche manualmente a templates/changesdoc.vm en el WAR desplegado.","source":"nvd"}],"published":"2026-04-14T22:33:56.000Z","modified":"2026-10-26T21:10:00.170Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-80"],"affected":[{"ranges":[{"version":">= 10.4-rc-1, < 16.10.16","status":"affected"},{"version":">= 17.0.0-rc-1, < 17.4.8","status":"affected"},{"version":">= 17.5.0-rc-1, < 17.10.1","status":"affected"}],"vendor":"xwiki","product":"xwiki-platform","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"10.4-rc-1","status":"affected","fixed":"16.10.16"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-web-templates","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-web-templates","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"17.0.0-rc-1","status":"affected","fixed":"17.4.8"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-web-templates","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-web-templates","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"17.5.0-rc-1","status":"affected","fixed":"17.10.1"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-web-templates","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-web-templates","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"10.4","fixed":"16.10.16"},{"status":"affected","introduced":"17.0.0","fixed":"17.4.8"},{"status":"affected","introduced":"17.5.0","fixed":"17.10.1"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-w4fj-87j5-f25c","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/3c8a2ec985641367015c2db937574fcd360c788c","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-23472","tags":["vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40105","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-platform","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-15T14:02:32.181Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40105","url":"https://www.cve.org/CVERecord?id=CVE-2026-40105","licence":"CVE Terms of Use","modified":"2026-04-15T16:13:48.450Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w4fj-87j5-f25c","url":"https://github.com/advisories/GHSA-w4fj-87j5-f25c","licence":"CC-BY-4.0","modified":"2026-05-05T16:11:29.090Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40105","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40105","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:18.816Z","epss":{"score":0.00549,"percentile":0.47351,"date":"2026-12-01T12:00:22.000Z"}}