CVE-2024-43400: XWiki Platform allows XSS through XClass name in string properties
Impact Is it possible for a user without Script or Programming rights to craft a URL pointing to a page with arbitrary JavaScript. This requires social engineer to trick a user to follow the URL. Reproduction steps 1. As a user without script or programming right, create a (non-terminal) document named " + alert(1) + " (the quotes need to be part of the name). 1. Edit the class. 1.
Published Aug 19, 2024 · Updated Aug 20, 2024
Affected packages
org.xwiki.platform:xwiki-platform-oldcore
- Ecosystem
- Maven
- Affected
- >= 1.1.2, < 14.10.21
- Fixed in
- 14.10.21
- Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-oldcore
org.xwiki.platform:xwiki-platform-oldcore
- Ecosystem
- Maven
- Affected
- >= 15.0-rc-1, < 15.5.5
- Fixed in
- 15.5.5
- Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-oldcore
org.xwiki.platform:xwiki-platform-oldcore
- Ecosystem
- Maven
- Affected
- >= 15.6-rc-1, < 15.10.6
- Fixed in
- 15.10.6
- Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-oldcore
org.xwiki.platform:xwiki-platform-oldcore
- Ecosystem
- Maven
- Affected
- = 16.0.0-rc-1
- Fixed in
- 16.0.0
- Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-oldcore
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
Is it possible for a user without Script or Programming rights to craft a URL pointing to a page with arbitrary JavaScript. This requires social engineer to trick a user to follow the URL.
Reproduction steps
- As a user without script or programming right, create a (non-terminal) document named
" + alert(1) + "(the quotes need to be part of the name). - Edit the class.
- Add a string property named
"test". - Edit using the object editor and add an object of the created class
- Get an admin to open
<xwiki-server>/xwiki/bin/view/%22%20%2B%20alert(1)%20%2B%20%22/?viewer=display&type=object&property=%22%20%2B%20alert(1)%20%2B%20%22.WebHome.test&mode=editwhere<xwiki-server>is the URL of your XWiki installation.
Patches
This has been patched in XWiki 14.10.21, 15.5.5, 15.10.6 and 16.0.0.
Workarounds
We're not aware of any workaround except upgrading.
References
- https://jira.xwiki.org/browse/XWIKI-21810
- https://github.com/xwiki/xwiki-platform/commit/27eca8423fc1ad177518077a733076821268509c
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-wcg9-pgqv-xm5v
- https://nvd.nist.gov/vuln/detail/CVE-2024-43400
- https://github.com/xwiki/xwiki-platform/commit/27eca8423fc1ad177518077a733076821268509c
- https://jira.xwiki.org/browse/XWIKI-21810
- https://github.com/advisories/GHSA-wcg9-pgqv-xm5v
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2024-56158
XWiki allows SQL injection in query endpoint of REST API with Oracle
critical9.3Jun 12, 2025CVE-2024-37899
XWiki Platform allows remote code execution from user account
critical9.0Jun 20, 2024CVE-2024-31981
XWiki Platform: Privilege escalation (PR) from user registration through PDFClass
critical9.9Apr 10, 2024CVE-2024-31987
XWiki Platform remote code execution from account via custom skins support
critical9.9Apr 10, 2024
