CVE-2022-29252 Cross-site Scripting in XWiki Platform Wiki UI Main Wiki
Attackers can inject malicious scripts via the requestJoin field in XWiki, potentially leading to code execution or account takeover.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-29252?
CVE-2022-29252 is a high-severity cross-site scripting vulnerability in Xwiki Xwiki, published on 25 May 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
XWiki Platform Wiki UI Main Wiki is a package for managing subwikis. Starting with version 5.3-milestone-2, XWiki Platform Wiki UI Main Wiki contains a possible cross-site scripting vector in the `WikiManager.JoinWiki ` wiki page related to the "requestJoin" field. The issue is patched in versions 12.10.11, 14.0-rc-1, 13.4.7, and 13.10.3. The easiest available workaround is to edit the wiki page `WikiManager.JoinWiki` (with wiki editor) according to the suggestion provided in the GitHub Security Advisory.
Which versions are affected by CVE-2022-29252?
6 open source packages ship an affected version, including org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki Maven | All versions | 12.10.11 |
org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki Maven | All versions | 12.10.11 |
org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki Maven | From 13.0.0 | 13.4.7 |
org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki Maven | From 13.0.0 | 13.4.7 |
org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki Maven | From 13.5.0 | 13.10.3 |
org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki Maven | From 13.5.0 | 13.10.3 |
Products include Xwiki Xwiki.
How do I fix CVE-2022-29252?
Upgrade org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki to a fixed version for your release line: 12.10.11, 13.4.7 or 13.10.3.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-29252 being exploited?
There is no known exploitation of CVE-2022-29252 in the wild and no public exploit code.
Other vulnerabilities in Xwiki Xwiki
- CVE-2025-24893 XWiki Platform Eval Injection
- CVE-2025-53836 XWiki Rendering is vulnerable to RCE attacks when processing nested macros
- CVE-2024-55662 XWiki allows remote code execution through the extension sheet
- CVE-2024-55877 XWiki allows remote code execution from account through macro descriptions and XWiki.XWikiSyntaxMacrosList
- CVE-2024-37901 XWiki Platform vulnerable to remote code execution from account via SearchSuggestConfigSheet
Sources
Also known as GHSA-ph5x-h23x-7q5q.