Description
XWiki Commons are technical libraries common to several other top level XWiki projects. There was no check in the author of a JavaScript xobject or StyleSheet xobject added in a XWiki document, so until now it was possible for a user having only Edit Right to create such object and to craft a script allowing to perform some operations when executing by a user with appropriate rights. This has been patched in XWiki 14.9-rc-1 by only executing the script if the author of it has Script rights.
Remediation
References
https://jira.xwiki.org/browse/XWIKI-19583
https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-cmvg-w72j-7phx
https://jira.xwiki.org/browse/XWIKI-9119
https://jira.xwiki.org/browse/XWIKI-19514
https://github.com/xwiki/xwiki-platform/commit/fe65bc35d5672dd2505b7ac4ec42aec57d500fbb
Related Vulnerabilities
CVE-2020-28269 Vulnerability in npm package field
CVE-2020-36183 Vulnerability in maven package com.fasterxml.jackson.core:jackson-databind
CVE-2023-35152 Vulnerability in maven package org.xwiki.platform:xwiki-platform-like-ui
CVE-2021-21428 Vulnerability in maven package org.openapitools:openapi-generator-online
CVE-2018-6464 Vulnerability in maven package org.webjars.bower:simditor