GHSA-9m7c-m33f-3429

Suggest an improvement
Source
https://github.com/advisories/GHSA-9m7c-m33f-3429
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-9m7c-m33f-3429/GHSA-9m7c-m33f-3429.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9m7c-m33f-3429
Aliases
  • CVE-2025-58049
Published
2025-08-28T15:10:13Z
Modified
2025-08-28T18:52:19Z
Severity
  • 5.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N CVSS Calculator
Summary
XWiki PDF export jobs store sensitive cookies unencrypted in job statuses
Details

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.

Database specific
{
    "nvd_published_at": "2025-08-28T18:15:33Z",
    "github_reviewed": true,
    "severity": "MODERATE",
    "cwe_ids": [
        "CWE-212",
        "CWE-257"
    ],
    "github_reviewed_at": "2025-08-28T15:10:13Z"
}
References

Affected packages

Maven / org.xwiki.platform:xwiki-platform-export-pdf-api

Package

Name
org.xwiki.platform:xwiki-platform-export-pdf-api
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-export-pdf-api

Affected ranges

Type
ECOSYSTEM
Events
Introduced
14.4.2
Fixed
16.4.8

Maven / org.xwiki.platform:xwiki-platform-export-pdf-api

Package

Name
org.xwiki.platform:xwiki-platform-export-pdf-api
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-export-pdf-api

Affected ranges

Type
ECOSYSTEM
Events
Introduced
16.5.0-rc-1
Fixed
16.10.7

Maven / org.xwiki.platform:xwiki-platform-export-pdf-api

Package

Name
org.xwiki.platform:xwiki-platform-export-pdf-api
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-export-pdf-api

Affected ranges

Type
ECOSYSTEM
Events
Introduced
17.0.0-rc-1
Fixed
17.4.0-rc-1