Medium, CVSS 5.8MavenPublished
XWiki PDF export jobs store sensitive cookies unencrypted in job statuses
CVE-2025-58049 · GHSA-9m7c-m33f-3429
- Affected
- Maven org.xwiki.platform:xwiki-platform-export-pdf-api >= 14.4.2, < 16.4.8; >= 16.5.0-rc-1, < 16.10.7; >= 17.0.0-rc-1, < 17.4.0-rc-1
- Fixed in
- 16.4.816.10.717.4.0-rc-1· Vendor fix available
- Issue
- Impact The PDF export uses a background job that runs on the server-side. Jobs like this have a status that is serialized in the permanent directory when the job is finished. The job status includes the job request. The PDF export job request is initialized, before the job starts, with some context information that is needed to replicate the HTTP request (used to trigger the export) in the background thread used to run the export job. This context information includes the cookies from the HTTP request that triggered the export. As a result, the user cookies (including the encrypted username and password) are stored in the permanent directory after the PDF export is finished. As the encryption key is stored in the same data directory (by default it is generated in data/configuration.properties), this means that this job status contains the equivalent of the plain text password of the user who requested the PDF export. XWiki shouldn't store passwords in plain text, and it shouldn't be…
Recommended action: Upgrade to 17.4.0-rc-1 (pre-release), 16.10.7 or 16.4.8 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.