Description
XWiki Commons are technical libraries common to several other top level XWiki projects. Any user with view rights on commonly accessible documents including the legacy notification activity macro can execute arbitrary Groovy, Python or Velocity code in XWiki leading to full access to the XWiki installation. The root cause is improper escaping of the macro parameters of the legacy notification activity macro. This macro is installed by default in XWiki. The vulnerability can be exploited via every wiki page that is editable including the user's profile, but also with just view rights using the HTMLConverter that is part of the CKEditor integration which is bundled with XWiki. The vulnerability has been patched in XWiki 13.10.11, 14.4.7 and 14.10.
Remediation
References
https://github.com/xwiki/xwiki-platform/commit/94392490884635c028199275db059a4f471e57bc
https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9pc2-x9qf-7j2q
https://jira.xwiki.org/browse/XWIKI-20258
Related Vulnerabilities
CVE-2022-1243 Vulnerability in npm package urijs
CVE-2023-29216 Vulnerability in maven package org.apache.linkis:linkis-common
CVE-2021-25987 Vulnerability in npm package hexo
CVE-2015-10005 Vulnerability in npm package markdown-it
CVE-2023-37899 Vulnerability in npm package @feathersjs/transport-commons