Vulnerability · Published Sep 8, 2022 · Assigned by GitHub_M
CVE-2022-36098XWiki Platform Mentions UI vulnerable to Cross-site Scripting
High 8.9
In plain English
A high-severity cross-site scripting in xwiki-platform from xwiki. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 71.6% (higher than 99.4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
XWiki Platform Mentions UI is a user interface for mentioning users in wiki content for XWiki Platform, a generic wiki platform. Starting in version 12.5-rc-1 and prior to versions 13.10.6 and 14.4, it's possible to store Javascript or groovy scripts in a mention, macro anchor, or reference field. The stored code is executed by anyone visiting the page with the mention. This issue has been patched on XWiki 14.4 and 13.10.6. As a workaround, one may update `XWiki.Mentions.MentionsMacro` and edit the `Macro code` field of the `XWiki.WikiMacroClass` XObject.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.xwiki.platform:xwiki-platform-mentions-ui | 13.10.6 | GHSA-c5v8-2q4r-5w9v |
| Maven | org.xwiki.platform:xwiki-platform-mentions-ui | 14.4 | GHSA-c5v8-2q4r-5w9v |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| xwiki | xwiki-platform | >= 12.5-rc-1, < 13.10.6>= 14.0, < 14.4 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-c5v8-2q4r-5w9v x_refsource_CONFIRM
- https://github.com/xwiki/xwiki-platform/commit/4032dc896857597efd169966dc9e2752a9fdd459#diff-4fe22885f772e47d3561a05348f73921669ec12d4413b220383b73c7ae484bc4R608-R610 x_refsource_MISC
- https://github.com/xwiki/xwiki-platform/commit/4f290d87a8355e967378a1ed6aee23a06ba162eb x_refsource_MISC
- https://jira.xwiki.org/browse/XWIKI-19752 x_refsource_MISC