XWiki Platform vulnerable to RXSS via editor parameter - importinline template
Description
XWiki Platform is a generic wiki platform. Starting in versions 2.2-milestone-1 and prior to versions 14.4.8, 14.10.4, and 15.0-rc-1, it's possible to execute javascript with the right of any user by leading him to a special URL on the wiki targeting a page which contains an attachment. This has been patched in XWiki 15.0-rc-1, 14.10.4, and 14.4.8. The easiest possible workaround is to edit file <xwiki app>/templates/importinline.vm and apply the modification described in commit 28905f7f518cc6f21ea61fe37e9e1ed97ef36f01.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.xwiki.platform:xwiki-platform-distribution-warMaven | >= 2.2-milestone-1, < 14.4.8 | 14.4.8 |
org.xwiki.platform:xwiki-platform-distribution-warMaven | >= 14.5, < 14.10.4 | 14.10.4 |
Affected products
1- Range: >= 2.2-milestone-1, < 14.4.8
Patches
128905f7f518cXWIKI-20340: Improve import escaping
1 file changed · +1 −1
xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/importinline.vm+1 −1 modified@@ -50,7 +50,7 @@ ## to import from that XAR. ## --------------------------------------------------------------------------- #else - #set($baseQueryString = "editor=$!{request.editor}&section=$!{request.section}") + #set($baseQueryString = "editor=$!{escapetool.url($request.editor)}&section=$!{escapetool.url($request.section)}") $xwiki.jsfx.use('js/xwiki/importer/import.js', true)## $xwiki.ssfx.use('js/xwiki/importer/import.css', true)## $xwiki.jsfx.use('uicomponents/widgets/upload.js', {'forceSkinAction': true, 'language': ${xcontext.locale}})##
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-j9h5-vcgv-2jfmghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-32071ghsaADVISORY
- app.intigriti.com/company/submissions/e95a7ad5-7029-4627-abf0-3e3e3ea0b4ce/XWIKI-E93DFEYKghsax_refsource_MISCWEB
- github.com/xwiki/xwiki-platform/commit/28905f7f518cc6f21ea61fe37e9e1ed97ef36f01ghsax_refsource_MISCWEB
- github.com/xwiki/xwiki-platform/security/advisories/GHSA-j9h5-vcgv-2jfmghsax_refsource_CONFIRMWEB
- jira.xwiki.org/browse/XWIKI-20340ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.