GHSA-57q2-6cp4-9mq3

Suggest an improvement
Source
https://github.com/advisories/GHSA-57q2-6cp4-9mq3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-57q2-6cp4-9mq3/GHSA-57q2-6cp4-9mq3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-57q2-6cp4-9mq3
Aliases
Published
2025-08-05T17:13:24Z
Modified
2025-08-06T14:31:28Z
Severity
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
XWiki exposes passwords and emails stored in fields not named password/email in xml.vm
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-359"
    ],
    "severity": "HIGH",
    "nvd_published_at": "2025-08-06T00:15:30Z",
    "github_reviewed_at": "2025-08-05T17:13:24Z",
    "github_reviewed": true
}
References

Affected packages

Maven / org.xwiki.platform:xwiki-platform-oldcore

Package

Name
org.xwiki.platform:xwiki-platform-oldcore
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-oldcore

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.1
Fixed
16.4.7

Maven / org.xwiki.platform:xwiki-platform-oldcore

Package

Name
org.xwiki.platform:xwiki-platform-oldcore
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-oldcore

Affected ranges

Type
ECOSYSTEM
Events
Introduced
16.5.0-rc-1
Fixed
16.10.5

Maven / org.xwiki.platform:xwiki-platform-oldcore

Package

Name
org.xwiki.platform:xwiki-platform-oldcore
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-oldcore

Affected ranges

Type
ECOSYSTEM
Events
Introduced
17.0.0-rc-1
Fixed
17.2.0-rc-1

Maven / org.xwiki.platform:xwiki-platform-legacy-oldcore

Package

Name
org.xwiki.platform:xwiki-platform-legacy-oldcore
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-legacy-oldcore

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.1
Fixed
16.4.7

Maven / org.xwiki.platform:xwiki-platform-legacy-oldcore

Package

Name
org.xwiki.platform:xwiki-platform-legacy-oldcore
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-legacy-oldcore

Affected ranges

Type
ECOSYSTEM
Events
Introduced
16.5.0-rc-1
Fixed
16.10.5

Maven / org.xwiki.platform:xwiki-platform-legacy-oldcore

Package

Name
org.xwiki.platform:xwiki-platform-legacy-oldcore
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-legacy-oldcore

Affected ranges

Type
ECOSYSTEM
Events
Introduced
17.0.0-rc-1
Fixed
17.2.0-rc-1