CVE-2025-49585: XWiki does not require right warnings for XClass definitions
Impact When an attacker without script or programming right creates an XClass definition in XWiki (requires edit right), and that same document is later edited by a user with script, admin, or programming right, malicious code could be executed with the rights of the editing user without prior warning.
Published Jun 13, 2025
Affected packages
org.xwiki.platform:xwiki-platform-security-requiredrights-default
- Ecosystem
- Maven
- Affected
- < 15.10.16
- Fixed in
- 15.10.16
- Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-security-requiredrights-default
org.xwiki.platform:xwiki-platform-security-requiredrights-default
- Ecosystem
- Maven
- Affected
- >= 16.0.0-rc-1, < 16.4.7
- Fixed in
- 16.4.7
- Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-security-requiredrights-default
org.xwiki.platform:xwiki-platform-security-requiredrights-default
- Ecosystem
- Maven
- Affected
- >= 16.5.0-rc-1, < 16.10.2
- Fixed in
- 16.10.2
- Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-security-requiredrights-default
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
When an attacker without script or programming right creates an XClass definition in XWiki (requires edit right), and that same document is later edited by a user with script, admin, or programming right, malicious code could be executed with the rights of the editing user without prior warning. In particular, this concerns custom display code, the script of computed properties and queries in database list properties. Note that warnings before editing documents with dangerous properties have only been introduced in XWiki 15.9, before that version, this was a known issue and the advice was simply to be careful.
Patches
This has been patched in XWiki 16.10.2, 16.4.7 and 15.10.16 by adding an analysis for the respective XClass properties.
Workarounds
We're not aware of any real workarounds apart from just being careful with editing documents previously edited by untrusted users as a user with script, admin or programming right.
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-59w6-r9hm-439h
- https://nvd.nist.gov/vuln/detail/CVE-2025-49585
- https://github.com/xwiki/xwiki-platform/commit/385bde985cdb61ebf315d30c0b144b6d2e2c2d45
- https://jira.xwiki.org/browse/XWIKI-22476
- https://github.com/advisories/GHSA-59w6-r9hm-439h
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
