CVE-2025-58049: Xwiki platform export pdf api XWiki PDF Export Jobs Store Vulnerability
MODERATECVE-2025-58049 is a MODERATE (CVSS 5.8) xwiki pdf export jobs store vulnerability (CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer) affecting Xwiki platform export pdf api libraries in the Maven ecosystem. The issue involves xwiki pdf export jobs store sensitive cookies unencrypted in job statuses. Remediation is available by upgrading affected packages to version 16.4.8, 16.10.7, 17.4.0-rc-1.
CVE-2025-58049 at a Glance
Security Impact
CVSS: 5.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N).
How to Fix CVE-2025-58049
To remediate this vulnerability, upgrade all affected Xwiki platform export pdf api dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-export-pdf-api</artifactId>
<version>16.4.8</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-export-pdf-api</artifactId>
<version>16.10.7</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-export-pdf-api</artifactId>
<version>17.4.0-rc-1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.xwiki.platform
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-58049, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.xwiki.platform
Analyze the terminal output to locate any version of Xwiki platform export pdf api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 16.4.8), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.xwiki.platform command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer, where the product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors. In Xwiki platform export pdf api, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-58049 Affected Xwiki platform export pdf api Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.xwiki.platform:xwiki-platform-export-pdf-api
|
Maven |
≥ 14.4.2
< 16.4.8
|
16.4.8
|
|
org.xwiki.platform:xwiki-platform-export-pdf-api
|
Maven |
≥ 16.5.0-rc-1
< 16.10.7
|
16.10.7
|
|
org.xwiki.platform:xwiki-platform-export-pdf-api
|
Maven |
≥ 17.0.0-rc-1
< 17.4.0-rc-1
|
17.4.0-rc-1
|
References
Frequently Asked Questions
What is CVE-2025-58049?
Which Xwiki platform export pdf api versions are affected?
What version fixes CVE-2025-58049?
Is xwiki-platform-export-pdf-api affected?
What is the CVSS score of CVE-2025-58049?
What CWE is associated with CVE-2025-58049?
How can I check Maven dependencies for CVE-2025-58049?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9m7c-m33f-3429",
"modified" : "2025-08-28T18:52:19Z",
"published" : "2025-08-28T15:10:13Z",
"aliases" : [ "CVE-2025-58049" ],
"summary" : "XWiki PDF export jobs store sensitive cookies unencrypted in job statuses",
"details" : "### 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-export-pdf-api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "14.4.2"
}, {
"fixed" : "16.4.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-export-pdf-api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "16.5.0-rc-1"
}, {
"fixed" : "16.10.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-export-pdf-api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "17.0.0-rc-1"
}, {
"fixed" : "17.4.0-rc-1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9m7c-m33f-3429"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-58049"
}, {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/commit/60982ad0057b1701ed8297f28cad35d170686539"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/xwiki/xwiki-platform"
}, {
"type" : "WEB",
"url" : "https://jira.xwiki.org/browse/XWIKI-23151"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-212", "CWE-257" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-08-28T15:10:13Z",
"nvd_published_at" : "2025-08-28T18:15:33Z"
}
}