tj-actions/branch-names Contains Command Injection Vulnerability
tj-actions/branch-names is a Github actions repository that contains workflows to retrieve branch or tag names with support for all events. In versions 8.2.1 and below, a critical vulnerability has been identified in the tj-actions/branch-names' GitHub Action workflow which allows arbitrary command execution in downstream workflows. This issue arises due to inconsistent input sanitization and unescaped output, enabling malicious actors to exploit specially crafted branch names or tags. While internal sanitization mechanisms have been implemented, the action outputs remain vulnerable, exposing consuming workflows to significant security risks. This is fixed in version 9.0.0
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-54416
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 23:46 UTC · Revision 1
Source evidence
tj-actions/branch-names Contains Command Injection Vulnerability
core-osv · Original sourcePublished 26 Jul 2025, 03:34 UTC
tj-actions/branch-names is a Github actions repository that contains workflows to retrieve branch or tag names with support for all events. In versions 8.2.1 and below, a critical vulnerability has been identified in the tj-actions/branch-names' GitHub Action workflow which allows arbitrary command execution in downstream workflows. This issue arises due to inconsistent input sanitization and unescaped output, enabling malicious actors to exploit specially crafted branch names or tags. While internal sanitization mechanisms have been implemented, the action outputs remain vulnerable, exposing consuming workflows to significant security risks. This is fixed in version 9.0.0
osv:CVE-2025-54416
Complete source record
{
"id": "9eaca4837d76b7d15c457bfa3ddb3867d4f59d7abdcbd14b4425166963c12171",
"url": "https://osv.dev/vulnerability/CVE-2025-54416",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "tj-actions/branch-names Contains Command Injection Vulnerability",
"summary": "tj-actions/branch-names is a Github actions repository that contains workflows to retrieve branch or tag names with support for all events. In versions 8.2.1 and below, a critical vulnerability has been identified in the tj-actions/branch-names' GitHub Action workflow which allows arbitrary command execution in downstream workflows. This issue arises due to inconsistent input sanitization and unescaped output, enabling malicious actors to exploit specially crafted branch names or tags. While internal sanitization mechanisms have been implemented, the action outputs remain vulnerable, exposing consuming workflows to significant security risks. This is fixed in version 9.0.0",
"evidence": "osv:CVE-2025-54416",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2025-54416",
"aliases": [
"CVE-2025-54416",
"GHSA-gq52-6phf-x2r6"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/tj-actions/branch-names",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "e497ceb8ccd43fd9573cf2e375216625bc411d1f"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "9.0.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "e497ceb8ccd43fd9573cf2e375216625bc411d1f"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "e497ceb8ccd43fd9573cf2e375216625bc411d1f"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v9.0.0"
}
]
}
}
],
"versions": [
"v8.2.1",
"v8",
"v8.2.0",
"v8.1.0",
"v8.0.2",
"v8.0.1",
"v8.0.0",
"v7.0.7",
"v7",
"v7.0.6",
"v7.0.5",
"v7.0.4",
"v7.0.3",
"v7.0.2",
"v7.0.1",
"v7.0.0",
"v6.5",
"v6",
"v6.4",
"v6.3",
"v6.2",
"v6.1",
"v5.6",
"v5.5",
"v5.4",
"v5.3",
"v5.2",
"v5.1",
"v5",
"v4.9",
"v4.8",
"v4.7",
"v4.6",
"v4.5",
"v4.4",
"v4.3",
"v4.2",
"v4",
"v4.1",
"v3.6",
"v3.5",
"v3.4",
"v3.3",
"v3.2",
"v3.1",
"v3",
"v2.2",
"v2.1",
"v2",
"v1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-54416.json"
}
}
],
"modified": "2026-10-28T02:30:24.278668142Z",
"provider": "osv",
"references": [
"https://github.com/tj-actions/branch-names/releases/tag/v9.0.0",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54416.json",
"https://github.com/tj-actions/branch-names/security/advisories/GHSA-gq52-6phf-x2r6",
"https://nvd.nist.gov/vuln/detail/CVE-2025-54416",
"https://github.com/tj-actions/branch-names/commit/e497ceb8ccd43fd9573cf2e375216625bc411d1f"
],
"provider_metadata": {
"cwe_ids": [
"CWE-77"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54416.json"
}
},
"related_cves": [
{
"value": "CVE-2025-54416",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 490976,
"published_at": "2025-07-26T03:34:31.288+00:00"
}