Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.xwiki.platform/xwiki-platform-export-pdf-api
  4. ›
  5. CVE-2025-58049

CVE-2025-58049: XWiki PDF export jobs store sensitive cookies unencrypted in job statuses

August 28, 2025

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 possible to gain access to plain text passwords by gaining access to, e.g., a backup of the data directory.

References

  • github.com/advisories/GHSA-9m7c-m33f-3429
  • github.com/xwiki/xwiki-platform
  • github.com/xwiki/xwiki-platform/commit/60982ad0057b1701ed8297f28cad35d170686539
  • github.com/xwiki/xwiki-platform/security/advisories/GHSA-9m7c-m33f-3429
  • jira.xwiki.org/browse/XWIKI-23151
  • nvd.nist.gov/vuln/detail/CVE-2025-58049

Code Behaviors & Features

Detect and mitigate CVE-2025-58049 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 14.4.2 before 16.4.8, all versions starting from 16.5.0-rc-1 before 16.10.7, all versions starting from 17.0.0-rc-1 before 17.4.0-rc-1

Fixed versions

  • 16.4.8
  • 16.10.7
  • 17.4.0-rc-1

Solution

Upgrade to versions 16.10.7, 16.4.8, 17.4.0-rc-1 or above.

Impact 5.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer
  • CWE-257: Storing Passwords in a Recoverable Format

Source file

maven/org.xwiki.platform/xwiki-platform-export-pdf-api/CVE-2025-58049.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 29 Aug 2025 00:19:07 +0000.