JUnit OpenTestReportGeneratingListener can leak Git credentials
Key facts
- Attack vector
- Local
- Privileges required
- High
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-312.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| junit-team | junit-framework | 5.12.0 to before 5.13.2 | 5.13.2 | Patch available | CNA |
| — | org.junit.platform:junit-platform-reporting (Maven) | 5.12.0 to before 5.13.2 | 5.13.2 | Patch available | GHSA-m43g-m425-p68x |
- junit-framework Vendorjunit-team Affected 5.12.0 to before 5.13.2 Fixed in 5.13.2 Patch available CNA
- org.junit.platform:junit-platform-reporting (Maven) Vendor— Affected 5.12.0 to before 5.13.2 Fixed in 5.13.2 Patch available GHSA-m43g-m425-p68x
Remediation
- Fix · CNA junit-framework (junit-team) Fixed in 5.13.2
- Fix · GHSA-m43g-m425-p68x org.junit.platform:junit-platform-reporting (Maven) Fixed in 5.13.2 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 2 products
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
Timeline
- 2026-10-02 Threatist record created from CVE-2025-53103
- 2026-10-03 Alias added: GHSA-m43g-m425-p68x
References
Other 4
- https://github.com/junit-team/junit-framework/security/advisories/GHSA-m43g-m425-p68x
- https://github.com/junit-team/junit-framework/commit/d4fc834c8c1c0b3168cd030c13551d1d041f51bc
- https://github.com/junit-team/junit-framework
- https://github.com/junit-team/junit-framework/blob/6b7764dac92fd35cb348152d1b37f8726875a4e0/junit-platform-reporting/src/main/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListener.java#L183
Sources
- CVE-2025-53103 · CVE Program
- CVE-2025-53103 · NVD
- FIRST EPSS
- GHSA-m43g-m425-p68x · GitHub Advisory Database · CC BY 4.0
- CVE-2025-53103 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences