5.8medium
XWiki PDF export jobs store sensitive cookies unencrypted in job statuses
- Severity
- 5.8medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.44% (higher than 39% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-9m7c-m33f-3429
Description
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In versions from 14.4.2 to before 16.4.8, 16.5.0-rc-1 to before 16.10.7, and 17.0.0-rc-1 to before 17.4.0-rc-1, the PDF export jobs store sensitive cookies unencrypted in job statuses. 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. This vulnerability has been patched in XWiki 16.4.8, 16.10.7, and 17.4.0-rc-1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| xwiki xwiki-platform | >= 14.4.2, < 16.4.8, >= 16.5.0-rc-1, < 16.10.7, >= 17.0.0-rc-1, < 17.4.0-rc-1 | CVE List |
| org.xwiki.platform:xwiki-platform-export-pdf-api (Maven) | from 14.4.2 before 16.4.8, from 16.5.0-rc-1 before 16.10.7, from 17.0.0-rc-1 before 17.4.0-rc-1 | GitHub Advisory Database |
| xwiki xwiki | from 14.4.2 before 16.4.8, from 16.5.0 before 16.10.7, from 17.0.0 up to 17.3.0 | NVD |
All scores
| GitHub_M | 5.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N |
| GitHub | 5.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
What each source says
CVE List
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In versions from 14.4.2 to before 16.4.8, 16.5.0-rc-1 to before 16.10.7, and 17.0.0-rc-1 to before 17.4.0-rc-1, the PDF export jobs store sensitive cookies unencrypted in job statuses. 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. This vulnerability has been patched in XWiki 16.4.8, 16.10.7, and 17.4.0-rc-1.
GitHub Advisory Database
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 possible to gain access to plain text passwords by gaining access to, e.g., a backup of the data directory.
Patches
This vulnerability has been patched in XWiki 16.4.8, 16.10.7 and 17.4.0RC1.
Workarounds
We're not aware of any workarounds except for upgrading.
NVD (es)
XWiki Platform es una plataforma wiki genérica que ofrece servicios en tiempo de ejecución para aplicaciones construidas sobre ella. En versiones desde la 14.4.2 hasta la 16.4.8, desde la 16.5.0-rc-1 hasta la 16.10.7, y desde la 17.0.0-rc-1 hasta la 17.4.0-rc-1, los trabajos de exportación de PDF almacenan cookies sensibles sin cifrar en los estados de los trabajos. XWiki no debería almacenar contraseñas en texto plano, y no debería ser posible obtener acceso a contraseñas en texto plano al obtener acceso a, por ejemplo, una copia de seguridad del directorio de datos. Esta vulnerabilidad ha sido parcheada en XWiki 16.4.8, 16.10.7 y 17.4.0-rc-1.
References
| https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9m7c-m33f-3429 | vendor-advisory, web | |
| https://github.com/xwiki/xwiki-platform/commit/60982ad0057b1701ed8297f28cad35d170686539 | patch, web | |
| https://jira.xwiki.org/browse/XWIKI-23151 | exploit, issue-tracking, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-58049 | advisory | |
| https://github.com/xwiki/xwiki-platform | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-58049 changed 2025-08-28 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9m7c-m33f-3429 changed 2025-08-28 | CC-BY-4.0 |
| NVD | CVE-2025-58049 changed 2026-09-26 | Public domain |