{"id":"CVE-2025-58049","aliases":["CVE-2025-58049","GHSA-9m7c-m33f-3429"],"related":[],"kind":"vulnerability","state":"published","title":"XWiki PDF export jobs store sensitive cookies unencrypted in job statuses","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe 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.\n\nXWiki 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.\n\n### Patches\n\nThis vulnerability has been patched in XWiki 16.4.8, 16.10.7 and 17.4.0RC1.\n\n### Workarounds\n\nWe're not aware of any workarounds except for upgrading.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-08-28T15:10:13.000Z","modified":"2026-09-26T00:10:00.127Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N","score":5.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N","score":5.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N","score":5.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-212","CWE-257"],"affected":[{"ranges":[{"version":">= 14.4.2, < 16.4.8","status":"affected"},{"version":">= 16.5.0-rc-1, < 16.10.7","status":"affected"},{"version":">= 17.0.0-rc-1, < 17.4.0-rc-1","status":"affected"}],"vendor":"xwiki","product":"xwiki-platform","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"14.4.2","status":"affected","fixed":"16.4.8"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-export-pdf-api","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-export-pdf-api","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"16.5.0-rc-1","status":"affected","fixed":"16.10.7"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-export-pdf-api","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-export-pdf-api","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"17.0.0-rc-1","status":"affected","fixed":"17.4.0-rc-1"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-export-pdf-api","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-export-pdf-api","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"14.4.2","fixed":"16.4.8"},{"status":"affected","introduced":"16.5.0","fixed":"16.10.7"},{"status":"affected","introduced":"17.0.0","lastAffected":"17.3.0"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9m7c-m33f-3429","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/60982ad0057b1701ed8297f28cad35d170686539","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-23151","tags":["exploit","issue-tracking","vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58049","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-platform","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-08-28T18:15:42.371Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-58049","url":"https://www.cve.org/CVERecord?id=CVE-2025-58049","licence":"CVE Terms of Use","modified":"2025-08-28T18:15:47.326Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9m7c-m33f-3429","url":"https://github.com/advisories/GHSA-9m7c-m33f-3429","licence":"CC-BY-4.0","modified":"2025-08-28T18:52:19.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-58049","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58049","licence":"Public domain","modified":"2026-09-26T00:10:00.127Z"}],"updatedAt":"2026-11-25T22:59:03.830Z","epss":{"score":0.00438,"percentile":0.39777,"date":"2026-12-01T12:00:22.000Z"}}