VYPR
Critical severityNVD Advisory· Published Jun 23, 2023· Updated Nov 27, 2024

XWiki Platform vulnerable to reflected cross-site scripting via xredirect parameter in deletespace template

CVE-2023-35159

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.

PackageAffected versionsPatched versions
org.xwiki.platform:xwiki-platform-web-templatesMaven
>= 3.4-milestone-1, < 14.10.514.10.5
org.xwiki.platform:xwiki-platform-web-templatesMaven
>= 15.0-rc-1, < 15.1-rc-115.1-rc-1

Affected products

1

Patches

1
5c20ff5e3bde

XWIKI-20612: Sanitize template URLs

https://github.com/xwiki/xwiki-platformSimon UrliFeb 2, 2023via ghsa
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 = "&amp;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

News mentions

0

No linked articles in our index yet.