CVE-2025-53103

Medium

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.

SeverityMedium
CVSS5.8
Exploit probability—
ProductOrg.junit.platform:junit-platform-reporting
PublishedJul 1, 2025
First seenJul 1, 2025
Weakness typeCWE-312CWE-312

How to fix

Update
  • org.junit.platform:junit-platform-reporting5.13.2 or later

Affected products

ProductAffected versionsFixed in
org.junit.platform:junit-platform-reportingMaven5.12.0 ≤ v < 5.13.25.13.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.