Critical severity · published Jul 26, 2025
CVE-2025-54416
tj-actions/branch-names Contains Command Injection Vulnerability
9.1
CVSS
0.7%
EPSS
No
On KEV
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
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
Low
Availability
Low
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 52% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
BR
branch-names · tj-actions
< 9.0.0 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-54416
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-54416
github.com
https://github.com/tj-actions/branch-names/commit/e497ceb8ccd43fd9573cf2e375216625bc411d1f
github.com
https://github.com/tj-actions/branch-names/releases/tag/v9.0.0
github.com
https://github.com/tj-actions/branch-names/security/advisories/GHSA-gq52-6phf-x2r6
More from branch-names
9.8
CVE-2023-49291
Improper Sanitization of Branch Name Leads to Arbitrary Code Injection
