XWiki Platform vulnerable to reflected cross-site scripting via xredirect parameter in deletespace template
Description
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Users are able to forge an URL with a payload allowing to inject Javascript in the page (XSS). It's possible to exploit the deletespace template to perform a XSS, e.g. by using URL such as: > xwiki/bin/deletespace/Sandbox/?xredirect=javascript:alert(document.domain). This vulnerability exists since XWiki 3.4-milestone-1. The vulnerability has been patched in XWiki 14.10.5 and 15.1-rc-1.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.xwiki.platform:xwiki-platform-web-templatesMaven | >= 3.4-milestone-1, < 14.10.5 | 14.10.5 |
org.xwiki.platform:xwiki-platform-web-templatesMaven | >= 15.0-rc-1, < 15.1-rc-1 | 15.1-rc-1 |
Affected products
1- Range: >= 3.4-milestone-1, < 14.10.5
Patches
15c20ff5e3bdeXWIKI-20612: Sanitize template URLs
1 file changed · +2 −1
xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/deletespace.vm+2 −1 modified@@ -29,8 +29,9 @@ #end #set ($cancelURL = $doc.getURL()) #if ($request.xredirect) + ## We don't sanitize this as it will be handled by the server #set ($redirectparam = "&xredirect=$escapetool.url($request.xredirect)") - #set ($cancelURL = $request.xredirect) + #getSanitizedURLAttributeValue('a','href',$request.xredirect,$doc.getURL(),$cancelURL) #end #if ($xwiki.hasRecycleBin()) #set ($confirmationMessage = $services.localization.render('core.space.recyclebin.confirm', ["<em>${escapetool.xml($doc.space)}</em>"]))
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
6- github.com/advisories/GHSA-x234-mg7q-m8g8ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-35159ghsaADVISORY
- github.com/xwiki/xwiki-platform/commit/5c20ff5e3bdea50f1053fe99a27e011b8d0e4b34ghsax_refsource_MISCWEB
- github.com/xwiki/xwiki-platform/security/advisories/GHSA-x234-mg7q-m8g8ghsax_refsource_CONFIRMWEB
- jira.xwiki.org/browse/XWIKI-20583ghsax_refsource_MISCWEB
- jira.xwiki.org/browse/XWIKI-20612ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.