CVE-2025-54125
XWiki exposes passwords and emails stored in fields not named password/email in xml.vm
Description
Impact
The XML export of a page in XWiki that can be triggered by any user with view rights on a page by appending ?xpage=xml to the URL includes password and email properties stored on a document that aren't named password or email. This allows any user to obtain the salted and hashed user account validation or password reset token. As those tokens are randomly generated strings, the immediate impact of this should be low. The user's password and email itself aren't exposed as those fields are named password and email and thus aren't affected. However, depending on how the wiki is used, there could be extensions or custom code that store passwords in plain text in such password properties that would be exposed by this vulnerability.
Patches
This vulnerability has been fixed by completely removing the output of password and email fields in this XML export in versions 17.2.0 RC1, 16.10.5 and 16.4.7.
Workarounds
If this XML export isn't needed, the file templates/xml.vm in the deployed WAR can be deleted. There isn't any feature in XWiki itself that depends on this XML export.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.xwiki.platform » xwiki-platform-legacy-oldcore | >= 1.1, < 16.4.7>= 16.5.0-rc-1, < 16.10.5>= 17.0.0-rc-1, < 17.2.0-rc-1 | 16.4.7, 16.10.5, 17.2.0-rc-1 |
| org.xwiki.platform » xwiki-platform-oldcore | >= 1.1, < 16.4.7>= 16.5.0-rc-1, < 16.10.5>= 17.0.0-rc-1, < 17.2.0-rc-1 | 16.4.7, 16.10.5, 17.2.0-rc-1 |
Blast radius
71% of the dependent artifacts (798) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 40,072 |
| 2 hops | 45,504 |
| 3 hops | 20,804 |
| 4 hops | 3,214 |
| 5 hops | 117 |
| 6 hops | 2 |
Most used dependents
- org.xwiki.platform » xwiki-platform-test-docker101 usages
- org.xwiki.platform » xwiki-platform-rest-server85 usages
- org.xwiki.platform » xwiki-platform-tool-packager-plugin77 usages
- org.xwiki.platform » xwiki-platform-administration-ui75 usages
- org.xwiki.platform » xwiki-platform-test-page72 usages
- org.xwiki.platform » xwiki-platform-test-oldcore71 usages
- org.xwiki.platform » xwiki-platform-panels-ui62 usages
- org.xwiki.platform » xwiki-platform-configuration-default57 usages
- org.phenotips » patient-data-api52 usages
- com.xwiki.licensing » application-licensing-licensor-api51 usages
- org.xwiki.platform » xwiki-platform-skin-skinx49 usages
- org.xwiki.platform » xwiki-platform-livetable-ui48 usages
- org.xwiki.platform » xwiki-platform-rendering-wikimacro-store47 usages
- org.xwiki.platform » xwiki-platform-uiextension-api47 usages
- org.phenotips » vocabularies-api46 usages
Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2025-54125 | nvd.nist.gov |
| Package | xwiki/xwiki-platform | github.com |
| Web | xwiki/xwiki-platform advisory GHSA-57q2-6cp4-9mq3 | github.com |
| Web | xwiki/xwiki-platform commit 742ee34 | github.com |
| Web | browse/XWIKI-22810 | jira.xwiki.org |
