CVE-2025-53103 Details
Description
JUnit is a testing framework for Java and the JVM. From version 5.12.0 to 5.13.1, JUnit's support for writing Open Test Reporting XML files can leak Git credentials. The impact depends on the level of the access token exposed through the OpenTestReportGeneratingListener. If these test reports are published or stored anywhere public, then there is the possibility that a rouge attacker can steal the token and perform elevated actions by impersonating the user or app. This issue as been patched in version 5.13.2.
A vulnerability in JUnit's Open Test Reporting XML file generation can leak Git credentials. This issue affects JUnit versions 5.12.0 to 5.13.1. The vulnerability arises when a repository is cloned using a GitHub token or other credentials in the URL. The 'OpenTestReportGeneratingListener' captures these credentials and includes them in the XML report. If the report is published or stored publicly, an attacker could steal the token and impersonate the user or application, depending on the token's access level.
Update to JUnit version 5.13.2 or later, which obfuscates Git credentials in the XML report. The Git metadata inclusion can be controlled with the 'junit.platform.reporting.open.xml.git.enabled' configuration parameter.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 1, 2025CISA-ADP
Assessed Jul 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/junit-team/junit-framework/commit/d4fc834c8c1c0b3168cd030c13551d1d041f51bc | [email protected] | Source CodeVendor |
| https://github.com/junit-team/junit-framework/security/advisories/GHSA-m43g-m425-p68x | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-312 | Cleartext Storage of Sensitive Information | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| JUnit | All versions |
CPE
Remediation
| |
| org.junit.platform:junit-platform-reporting | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 1, 2025 | New CVE Received | [email protected] |
Volerion