HIGH 8.7

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)

ArtifactAffected versionsFixed 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

2affected artifacts
1,022affected versions
1,114dependent artifacts (est.)
109,713dependent versions

71% of the dependent artifacts (798) still pull an affected version in their latest release.

DepthDependent 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

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.