CVE-2023-29515 Cross-site scripting (XSS) in xwiki-platform
Attackers can inject JavaScript and gain admin rights by exploiting App Within Minutes, requiring an upgrade to XWiki.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-29515?
CVE-2023-29515 is a high-severity cross-site scripting vulnerability in Xwiki Xwiki, published on 18 Apr 2023. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Any user who can create a space can become admin of that space through App Within Minutes. The admin right implies the script right and thus allows JavaScript injection. The vulnerability can be exploited by creating an app in App Within Minutes. If the button should be disabled because the user doesn't have global edit right, the app can also be created by directly opening `/xwiki/bin/view/AppWithinMinutes/CreateApplication?wizard=true` on the XWiki installation. This has been patched in XWiki 13.10.11, 14.4.8, 14.10.1 and 15.0 RC1 by not granting the space admin right if the user doesn't have script right on the space where the app is created. Error message are displayed to warn the user that the app will be broken in this case. Users who became space admin through this vulnerability won't loose the space admin right due to the fix, so it is advised to check if all users who created AWM apps should keep their space admin rights. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Weakness: CWE-79
Which versions are affected by CVE-2023-29515?
8 open source packages ship an affected version, including org.xwiki.platform:xwiki-platform-appwithinminutes-ui and org.xwiki.platform:xwiki-platform-appwithinminutes. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.xwiki.platform:xwiki-platform-appwithinminutes-ui Maven | From 14.0-rc-1 | 14.4.8 |
org.xwiki.platform:xwiki-platform-appwithinminutes-ui Maven | From 14.0-rc-1 | 14.4.8 |
org.xwiki.platform:xwiki-platform-appwithinminutes-ui Maven | From 14.5 | 14.10.1 |
org.xwiki.platform:xwiki-platform-appwithinminutes-ui Maven | From 14.5 | 14.10.1 |
org.xwiki.platform:xwiki-platform-appwithinminutes-ui Maven | From 4.2-milestone-1 | 13.10.11 |
org.xwiki.platform:xwiki-platform-appwithinminutes-ui Maven | From 4.2-milestone-1 | 13.10.11 |
2 more packages
org.xwiki.platform:xwiki-platform-appwithinminutes Maven | From 4.0-milestone-2 | 4.2-milestone-1 |
org.xwiki.platform:xwiki-platform-appwithinminutes Maven | From 4.0-milestone-2 | 4.2-milestone-1 |
Products include Xwiki Xwiki.
How do I fix CVE-2023-29515?
Upgrade org.xwiki.platform:xwiki-platform-appwithinminutes-ui to a fixed version for your release line: 14.4.8, 14.10.1 or 13.10.11.
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-2023-29515 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-29515 exists.
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-44h9-xxvx-pg6x.