Reflected Cross-site scripting through revision parameter in content menu in XWiki Platform
Description
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. XWiki is vulnerable to reflected cross-site scripting (RXSS) via the rev parameter that is used in the content of the content menu without escaping. If an attacker can convince a user to visit a link with a crafted parameter, this allows the attacker to execute arbitrary actions in the name of the user, including remote code (Groovy) execution in the case of a user with programming right, compromising the confidentiality, integrity and availability of the whole XWiki installation. This has been patched in XWiki 15.6 RC1, 15.5.1 and 14.10.14. The patch in commit 04e325d57 can be manually applied without upgrading (or restarting) the instance. Users are advised to upgrade or to manually apply the patch. There are no known workarounds for this vulnerability.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.xwiki.platform:xwiki-platform-flamingo-skin-resourcesMaven | >= 9.7-rc-1, < 14.10.14 | 14.10.14 |
org.xwiki.platform:xwiki-platform-flamingo-skin-resourcesMaven | >= 15.0-rc-1, < 15.5.1 | 15.5.1 |
Affected products
1- Range: >= 9.7-rc-1, < 14.10.14
Patches
104e325d57d4bXWIKI-21095: Improve revision handling in code viewer menu item
1 file changed · +1 −1
xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/menus_content.vm+1 −1 modified@@ -435,7 +435,7 @@ ## VIEW SOURCE ## #if ("$!request.rev" != '') - #set ($revisionParameter = "&rev=$request.rev") + #set ($revisionParameter = "&rev=$escapetool.url($request.rev)") #end #submenuitem($doc.getURL('view', "viewer=code$!{revisionParameter}") $services.localization.render('core.menu.view.source') 'tmViewSource', '', 'search', $extraAttributes) $viewersContent
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
5- github.com/advisories/GHSA-j9rc-w3wv-fv62ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-46732ghsaADVISORY
- github.com/xwiki/xwiki-platform/commit/04e325d57d4bcb6ab79bddcafbb19032474c2a55ghsax_refsource_MISCWEB
- github.com/xwiki/xwiki-platform/security/advisories/GHSA-j9rc-w3wv-fv62ghsax_refsource_CONFIRMWEB
- jira.xwiki.org/browse/XWIKI-21095ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.