VYPR
Critical severityNVD Advisory· Published May 9, 2023· Updated Jan 28, 2025

XWiki Platform vulnerable to RXSS via editor parameter - importinline template

CVE-2023-32071

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.

PackageAffected versionsPatched versions
org.xwiki.platform:xwiki-platform-distribution-warMaven
>= 2.2-milestone-1, < 14.4.814.4.8
org.xwiki.platform:xwiki-platform-distribution-warMaven
>= 14.5, < 14.10.414.10.4

Affected products

1

Patches

1
28905f7f518c

XWIKI-20340: Improve import escaping

https://github.com/xwiki/xwiki-platformThomas MortagneJan 19, 2023via ghsa
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}&amp;section=$!{request.section}")
    +  #set($baseQueryString = "editor=$!{escapetool.url($request.editor)}&amp;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

News mentions

0

No linked articles in our index yet.