Skip to content
Heist/ feed
Back to feed
Medium

junit5 — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-53103

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.

Products
junit5
Affected versions
5.10.1-1, 5.10.3-1, 5.10.3-1build1, 5.14.2-0ubuntu1, 5.14.2-0ubuntu2, 5.3.2-1, 5.3.2-2, 5.3.2-4, 5.3.2-5, 5.9.2-1
Fixed versions
Not specified
CVEs
CVE-2025-53103
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:33 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-53103

core-osv · Original source

Published 1 Jul 2025, 18:15 UTC

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.

osv:UBUNTU-CVE-2025-53103

junit5

Fixed versions: Not specified

junit5

Fixed versions: Not specified

junit5

Fixed versions: Not specified

junit5

Fixed versions: Not specified

junit5

Fixed versions: Not specified

junit5

Fixed versions: Not specified

Complete source record
{
  "id": "d6a0a7fdf23a532c78eefd10520c4f9589515bb5b937d0489b6c85b4bdd66ff7",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-53103",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-53103",
    "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.",
    "evidence": "osv:UBUNTU-CVE-2025-53103",
    "products": [
      {
        "name": {
          "value": "junit5",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.3.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.3.2-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "junit5",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.3.2-4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.3.2-5",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "junit5",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.9.2-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.10.1-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "junit5",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.10.3-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "junit5",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.14.2-0ubuntu2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "junit5",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.10.3-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "5.10.3-1build1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "5.14.2-0ubuntu1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "5.14.2-0ubuntu2",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2025-53103",
      "aliases": [
        "UBUNTU-CVE-2025-53103"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "junit5",
            "purl": "pkg:deb/ubuntu/junit5?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "5.3.2-1",
            "5.3.2-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-53103.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "junit5",
                "binary_version": "5.3.2-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "junit5",
            "purl": "pkg:deb/ubuntu/junit5?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "5.3.2-4",
            "5.3.2-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-53103.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "junit5",
                "binary_version": "5.3.2-5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "junit5",
            "purl": "pkg:deb/ubuntu/junit5?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "5.9.2-1",
            "5.10.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-53103.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "junit5",
                "binary_version": "5.10.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "junit5",
            "purl": "pkg:deb/ubuntu/junit5?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "5.10.3-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-53103.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "junit5",
                "binary_version": "5.10.3-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "junit5",
            "purl": "pkg:deb/ubuntu/junit5?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "5.14.2-0ubuntu2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-53103.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "junit5",
                "binary_version": "5.14.2-0ubuntu2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "junit5",
            "purl": "pkg:deb/ubuntu/junit5?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "5.10.3-1",
            "5.10.3-1build1",
            "5.14.2-0ubuntu1",
            "5.14.2-0ubuntu2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-53103.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "junit5",
                "binary_version": "5.14.2-0ubuntu2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:07.241525671Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-53103"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-53103",
        "https://www.cve.org/CVERecord?id=CVE-2025-53103",
        "https://github.com/junit-team/junit-framework/security/advisories/GHSA-m43g-m425-p68x",
        "https://github.com/junit-team/junit-framework/commit/d4fc834c8c1c0b3168cd030c13551d1d041f51bc"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-53103",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356750,
  "published_at": "2025-07-01T18:15:00+00:00"
}