CVE-2025-54416
CRITICAL 9.1CVSS 3.1tj-actions/branch-names has a 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
- Published
- 26 Jul 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-77
- Also known as
- GHSA-gq52-6phf-x2r6
- Sources
- NVDJSONOSV GHSA-gq52-6phf-x2r6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | GitHub Actions | tj-actions/branch-names | < 9.0.0 | 9.0.0 |
References
- 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-gq52-6phf-x2r6 · 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
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 26 Jul 2025)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 25 Jul 2025)