# CVE-2025-54416: tj-actions/branch-names Contains Command Injection Vulnerability

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.91%, higher than 61% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-07-25T19:28:22.000Z
- Modified: 2026-09-10T03:50:57.955Z
- Also known as: GHSA-gq52-6phf-x2r6
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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

(As written by CVE List.)

## Affected

- tj-actions branch-names: < 9.0.0
- tj-actions/branch-names (GitHub Actions): before 9.0.0

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L`

## References

- <https://github.com/tj-actions/branch-names/security/advisories/GHSA-gq52-6phf-x2r6> (exploit, web)
- <https://github.com/tj-actions/branch-names/commit/e497ceb8ccd43fd9573cf2e375216625bc411d1f> (web)
- <https://github.com/tj-actions/branch-names/releases/tag/v9.0.0> (web)
- <https://github.com/tj-actions/branch-names/security/advisories/GHSA-8v8w-v8xg-79rf> (web)
- <https://github.com/tj-actions/changed-files/security/advisories/GHSA-mcph-m25j-8j63> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54416> (advisory)
- <https://github.blog/security/application-security/how-to-secure-your-github-actions-workflows-with-codeql> (web)
- <https://github.com/tj-actions/branch-names> (package)
- <https://securitylab.github.com/resources/github-actions-untrusted-input> (web)

## Sources

- CVE List: [CVE-2025-54416](https://www.cve.org/CVERecord?id=CVE-2025-54416), CVE Terms of Use, modified 2025-07-28
- GitHub Advisory Database: [GHSA-gq52-6phf-x2r6](https://github.com/advisories/GHSA-gq52-6phf-x2r6), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-54416](https://nvd.nist.gov/vuln/detail/CVE-2025-54416), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-54416 · Whole record: https://cve.day/CVE-2025-54416.json · Rebuilt by cve.day 2026-11-25T22:59:01.756Z
