VYPR
Critical severityNVD Advisory· Published Nov 6, 2023· Updated Sep 5, 2024

Reflected Cross-site scripting through revision parameter in content menu in XWiki Platform

CVE-2023-46732

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.

PackageAffected versionsPatched versions
org.xwiki.platform:xwiki-platform-flamingo-skin-resourcesMaven
>= 9.7-rc-1, < 14.10.1414.10.14
org.xwiki.platform:xwiki-platform-flamingo-skin-resourcesMaven
>= 15.0-rc-1, < 15.5.115.5.1

Affected products

1

Patches

1
04e325d57d4b

XWIKI-21095: Improve revision handling in code viewer menu item

https://github.com/xwiki/xwiki-platformMichael HamannJul 10, 2023via ghsa
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

News mentions

0

No linked articles in our index yet.