CVE-2025-53103

CVE-2025-53103 is a medium-severity security vulnerability in org.junit.platform:junit-platform-reporting (maven), affecting versions >= 5.12.0, <= 5.13.1. It is fixed in 5.13.2.

Summary

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:[email protected]/example/example.git" />
</infrastructure>

Details

https://github.com/junit-team/junit5/blob/6b7764dac92fd35cb348152d1b37f8726875a4e0/junit-platform-reporting/src/main/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListener.java#L183

I think this should be configurable in some way to exclude select git information or exclude it entirely.

PoC

  1. Clone a repo using a GitHub token as shown above.
  2. Enable the listener junit.platform.reporting.open.xml.enabled=true
  3. Observe report captures credentials

Resolution

JUnit 5.13.2 and later replace credentials in the URL with ***. Moreover, including any Git metadata in the XML output is now an opt-in feature that can be enabled via the new junit.platform.reporting.open.xml.git.enabled=true configuration parameter but is not included by default.

Impact

Depending on the level of access of the token, it can be nothing, limited, or everything.

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.

CVE-2025-53103 has a CVSS score of 5.8 (Medium). The vector is requires local access, high privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (5.13.2); upgrading removes the vulnerable code path.

Affected versions

org.junit.platform:junit-platform-reporting (>= 5.12.0, <= 5.13.1)

Security releases

org.junit.platform:junit-platform-reporting → 5.13.2 (maven)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

Upgrade org.junit.platform:junit-platform-reporting to 5.13.2 or later to resolve this vulnerability.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is CVE-2025-53103? CVE-2025-53103 is a medium-severity security vulnerability in org.junit.platform:junit-platform-reporting (maven), affecting versions >= 5.12.0, <= 5.13.1. It is fixed in 5.13.2.
  2. How severe is CVE-2025-53103? CVE-2025-53103 has a CVSS score of 5.8 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of org.junit.platform:junit-platform-reporting are affected by CVE-2025-53103? org.junit.platform:junit-platform-reporting (maven) versions >= 5.12.0, <= 5.13.1 is affected.
  4. Is there a fix for CVE-2025-53103? Yes. CVE-2025-53103 is fixed in 5.13.2. Upgrade to this version or later.
  5. Is CVE-2025-53103 exploitable, and should I be worried? Whether CVE-2025-53103 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2025-53103 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2025-53103? Upgrade org.junit.platform:junit-platform-reporting to 5.13.2 or later.

Other vulnerabilities in org.junit.platform:junit-platform-reporting

Stop the waste.
Protect your environment with Kodem.