{"id":"CVE-2026-40105","published":"2026-04-15T00:07:23Z","modified":"2026-04-15T16:13:48Z","title":"XWiki has Reflected Cross-Site Scripting (XSS) in its page history compare functionality","vendor":"xwiki","product":"xwiki-platform","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00549,"percentile":0.46861,"provenance":"source"},"cwes":[{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-w4fj-87j5-f25c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/3c8a2ec985641367015c2db937574fcd360c788c","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XWIKI-23472","tags":["x_refsource_MISC"]}],"priority":{"score":18.9,"factors":[{"name":"EPSS percentile","points":9.37},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.55}]},"exploitSources":{"nuclei":[{"id":"CVE-2026-40105","name":"XWiki - Cross-Site Scripting","severity":"medium","path":"http/cves/2026/CVE-2026-40105.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40105.yaml"}],"provenance":"source"},"vendorSlug":"xwiki","affectedVersions":[{"vendor":"xwiki","product":"xwiki-platform","versions":[">= 10.4-rc-1, < 16.10.16",">= 17.0.0-rc-1, < 17.4.8",">= 17.5.0-rc-1, < 17.10.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-15T14:02:32.181983Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-web-templates","vulnerableRanges":[">=10.4-rc-1, <16.10.16",">=17.0.0-rc-1, <17.4.8",">=17.5.0-rc-1, <17.10.1"],"patched":["16.10.16","17.4.8","17.10.1"],"from":["GHSA-w4fj-87j5-f25c"],"provenance":"source"}],"summary":{"text":"The XWiki Platform's page history comparison view, which shows differences between revisions of a page, contains a reflected cross-site scripting flaw that lets attacker-supplied JavaScript run in a user's browser.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:40:25Z"},"euvd":{"id":"EUVD-2026-22819","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-xwiki-platform-cve-2022-36100","parents":[{"from":"CVE-2023-36468","to":"CVE-2026-40105","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/changesdoc.vm"],"commits":["https://github.com/xwiki/xwiki-platform/commit/15a6f845d8206b0ae97f37aa092ca43d4f9d6e59","https://github.com/xwiki/xwiki-platform/commit/3c8a2ec985641367015c2db937574fcd360c788c"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-32430","published":"2025-08-05","fixed":"17.3.0-rc-1","kev":false},{"cve":"CVE-2025-66472","published":"2025-12-10","fixed":"17.4.2","kev":false},{"cve":"CVE-2026-24128","published":"2026-01-23","fixed":"17.8.0-rc-1","kev":false,"link":{"from":"CVE-2026-24128","to":"CVE-2026-40105","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-web-templates","fromFixed":"16.10.12","toFixed":"16.10.16","daysApart":82},{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-web-templates","fromFixed":"17.4.5","toFixed":"17.4.8","daysApart":82}]}},{"cve":"CVE-2026-40105","published":"2026-04-15","fixed":"17.10.1","kev":false}],"package":"Maven:org.xwiki.platform:xwiki-platform-web-templates"}}