Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.junit.platform/junit-platform-reporting
  4. ›
  5. CVE-2025-53103

CVE-2025-53103: junit-platform-reporting can leak Git credentials through its OpenTestReportGeneratingListener

July 1, 2025

This vulnerability affects JUnit’s support for writing Open Test Reporting XML files which is an opt-in feature of junit-platform-reporting.

If a repository is cloned using a GitHub token or other credentials in its URL, for example:

git clone https://${GH_APP}:${GH_TOKEN}@github.com/example/example.git

The credentials are captured by OpenTestReportGeneratingListener which produces (trimmed for brevity):

<infrastructure>
<git:repository originUrl="https://username:token@github.com/example/example.git" />
</infrastructure>

References

  • github.com/advisories/GHSA-m43g-m425-p68x
  • github.com/junit-team/junit-framework
  • github.com/junit-team/junit-framework/blob/6b7764dac92fd35cb348152d1b37f8726875a4e0/junit-platform-reporting/src/main/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListener.java
  • github.com/junit-team/junit-framework/commit/d4fc834c8c1c0b3168cd030c13551d1d041f51bc
  • github.com/junit-team/junit-framework/security/advisories/GHSA-m43g-m425-p68x
  • nvd.nist.gov/vuln/detail/CVE-2025-53103

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 5.12.0 before 5.13.2

Fixed versions

  • 5.13.2

Solution

Upgrade to version 5.13.2 or above.

Impact 5.8 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-312: Cleartext Storage of Sensitive Information

Source file

maven/org.junit.platform/junit-platform-reporting/CVE-2025-53103.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:17:25 +0000.