Vulnerabilities in pkg:maven/org.xwiki.platform/xwiki-platform-web-templates
PACKAGECVE-2026-40105 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)) affecting Xwiki platform web templates libraries in the Maven ecosystem. The issue involves xwiki has reflected cross-site scripting (xss) in page history compare. Remediation is available by upgrading affected packages to version 16.10.16, 17.4.8, 17.10.1.
pkg:maven/org.xwiki.platform/xwiki-platform-web-templates
Vulnerability advisories affecting package pkg:maven/org.xwiki.platform/xwiki-platform-web-templates. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-w4fj-87j5-f25c | CVE-2026-40105 | MODERATE | XWiki has Reflected Cross-Site Scripting (XSS) in page history compare |
| GHSA-wvqx-m5px-6cmp | CVE-2026-24128 | MODERATE | XWiki Affected by Reflected Cross-Site Scripting (XSS) in Error Messages |
| GHSA-7vpr-jm38-wr7w | CVE-2025-66472 | MODERATE | XWiki vulnerable to a reflected XSS via xredirect parameter in DeleteApplication |
| GHSA-m9x4-w7p9-mxhx | CVE-2025-32430 | MODERATE | XWiki allows Reflected XSS in two templates |
| GHSA-f963-4cq8-2gw7 | CVE-2024-43401 | CRITICAL | In XWiki Platform, payloads stored in content is executed when a user with script/programming right edit them |
| GHSA-692v-783f-mg8x | CVE-2024-41947 | CRITICAL | XWiki Platform vulnerable to Cross-Site Scripting (XSS) through conflict resolution |
| GHSA-qcj9-gcpg-4w2w | CVE-2023-45136 | CRITICAL | XWiki Platform web templates vulnerable to reflected XSS in the create document form if name validation is enabled |
| GHSA-gr82-8fj2-ggc3 | CVE-2023-45134 | CRITICAL | XWiki Platform XSS vulnerability from account in the create page form via template provider |
| GHSA-93gh-jgjj-r929 | CVE-2023-45137 | CRITICAL | XWiki Platform vulnerable to XSS with edit right in the create document form for existing pages |
| GHSA-ghf6-2f42-mjh9 | CVE-2023-45135 | CRITICAL | XWiki users can be tricked to execute scripts as the create page action doesn't display the page's title |
| GHSA-h8cm-3v5f-rgp6 | CVE-2023-40176 | MODERATE | XWiki Platform Stored Cross-site Scripting in the user profile via the timezone displayer |
| GHSA-r8xc-xxh3-q5x3 | CVE-2023-35160 | CRITICAL | XWiki Platform vulnerable to reflected cross-site scripting via back and xcontinue parameters in resubmit template |
| GHSA-x234-mg7q-m8g8 | CVE-2023-35159 | CRITICAL | XWiki Platform vulnerable to reflected cross-site scripting via xredirect parameter in deletespace template |
| GHSA-fp7h-f9f5-x4q7 | CVE-2023-34464 | CRITICAL | XWiki vulnerable to stored cross-site scripting via any wiki document and the displaycontent/rendercontent template |
| GHSA-6vgh-9r3c-2cxp | CVE-2023-29207 | HIGH | Improper Neutralization of Script-Related HTML Tags (XSS) in the LiveTable Macro |
| GHSA-fp36-mjw5-fmgx | CVE-2023-29513 | MODERATE | xwiki-platform-web-templates allows users to be created even when registration is disabled without validation via template macro |
| GHSA-hg5x-3w3x-7g96 | CVE-2023-29512 | CRITICAL | xwiki-platform-web-templates vulnerable to Eval Injection |
| GHSA-vvp7-r422-rx83 | CVE-2023-29203 | LOW | Unauthenticated user can have information about hidden users on subwikis through uorgsuggest.vm |
| GHSA-fxwr-4vq9-9vhj | CVE-2022-36095 | MODERATE | XWiki Cross-Site Request Forgery (CSRF) for actions on tags |
| GHSA-599v-w48h-rjrm | CVE-2022-36091 | HIGH | XWiki Platform Web Templates vulnerable to Missing Authorization, Exposure of Private Personal Information to Unauthorized Actor |
| GHSA-h5j3-5x63-p8jv | CVE-2022-36093 | HIGH | XWiki Platform Web Templates vulnerable to Unauthorized User Registration Through the Distribution Wizard |
| GHSA-97jg-43c9-q6pf | CVE-2022-24819 | MODERATE | Unauthenticated user can retrieve the list of users through uorgsuggest.vm |
| GHSA-gx6h-936c-vrrr | CVE-2022-23622 | HIGH | Cross site scripting in registration template in xwiki-platform |
CVE-2026-40105 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2026-40105
To remediate this vulnerability, upgrade all affected Xwiki platform web templates dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-web-templates</artifactId>
<version>16.10.16</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-web-templates</artifactId>
<version>17.4.8</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-web-templates</artifactId>
<version>17.10.1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.xwiki.platform
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-40105, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.xwiki.platform
Analyze the terminal output to locate any version of Xwiki platform web templates in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 16.10.16), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.xwiki.platform command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages. In Xwiki platform web templates, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-40105 Affected Xwiki platform web templates Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.xwiki.platform:xwiki-platform-web-templates
|
Maven |
≥ 10.4-rc-1
< 16.10.16
|
16.10.16
|
|
org.xwiki.platform:xwiki-platform-web-templates
|
Maven |
≥ 17.0.0-rc-1
< 17.4.8
|
17.4.8
|
|
org.xwiki.platform:xwiki-platform-web-templates
|
Maven |
≥ 17.5.0-rc-1
< 17.10.1
|
17.10.1
|
References
Frequently Asked Questions
What is CVE-2026-40105?
Which Xwiki platform web templates versions are affected?
What version fixes CVE-2026-40105?
Is xwiki-platform-web-templates affected?
What is the CVSS score of CVE-2026-40105?
What CWE is associated with CVE-2026-40105?
How can I check Maven dependencies for CVE-2026-40105?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w4fj-87j5-f25c",
"modified" : "2026-04-27T15:02:22Z",
"published" : "2026-04-14T22:33:56Z",
"aliases" : [ "CVE-2026-40105" ],
"summary" : "XWiki has Reflected Cross-Site Scripting (XSS) in page history compare",
"details" : "### 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-web-templates"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.4-rc-1"
}, {
"fixed" : "16.10.16"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-web-templates"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "17.0.0-rc-1"
}, {
"fixed" : "17.4.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-web-templates"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "17.5.0-rc-1"
}, {
"fixed" : "17.10.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-w4fj-87j5-f25c"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-40105"
}, {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/commit/3c8a2ec985641367015c2db937574fcd360c788c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/xwiki/xwiki-platform"
}, {
"type" : "WEB",
"url" : "https://jira.xwiki.org/browse/XWIKI-23472"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-80" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-14T22:33:56Z",
"nvd_published_at" : "2026-04-15T04:17:48Z"
}
}