Skip to content
OpenAdvisories
Medium · 5.8 CVE-2025-53103 EUVD-2025-19655GHSA-m43g-m425-p68x

JUnit OpenTestReportGeneratingListener can leak Git credentials

Published Jul 1, 2025 · Updated Jul 1, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
junit-team junit-framework >= 5.12.0, < 5.13.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 junit5 No fix yet —
Ubuntu 26.04 LTS junit5 No fix yet —
Ubuntu 25.10 junit5 No fix yet —
Ubuntu 24.04 LTS junit5 No fix yet —
Ubuntu 22.04 LTS junit5 No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS junit5 No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.junit.platform:junit-platform-reporting >= 5.12.0, < 5.13.2 5.13.2 GHSA-m43g-m425-p68x

Advisories 1

References