Skip to content
OpenAdvisories
Critical · 9.1 Public exploit CVE-2025-54416 EUVD-2025-22774GHSA-gq52-6phf-x2r6

tj-actions/branch-names Contains Command Injection Vulnerability

Published Jul 26, 2025 · Updated Jul 28, 2025 · Assigned by GitHub_M

Description

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

Affected products

VendorProductAffectedFixed
tj-actions branch-names < 9.0.0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
GitHub Actions tj-actions/branch-names < 9.0.0 9.0.0 GHSA-gq52-6phf-x2r6

References