Tj-actions branch-names
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
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 9.0.0
Fixed in 9.0.0
Mitigation
Upgrade branch-names to 9.0.0 or later.
References
- Vendor advisory github.com/tj-actions/branch-names/security/ad…
- Patch github.com/tj-actions/branch-names/commit/e497…
- Release notes github.com/tj-actions/branch-names/releases/ta…
Timeline
Days relative to CVE publicationFirst public PoC 262 days after publication; not in CISA KEV. First PoC: HexborneStudio/atlas-tj-actions-poc (created 13 Apr 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| HexborneStudio/atlas-tj-actions-poc | 13 Apr 2026 +262 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /exfil
- Query
secret={var})- Seen in
- 1 repo: HexborneStudio/atlas-tj-actions-poc
- Evidence
- HexborneStudio/atlas-tj-actions-poc/README.md:24 HexborneStudio/atlas-tj-actions-poc/README.md:29
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/exfil\?(?:.*&)?secret=\{var\}\)
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-54416 tj-actions branch-names exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/exfil"; http.uri; content:"secret={var})"; reference:url,poc.griffinguard.io/cve/CVE-2025-54416; classtype:web-application-attack; sid:9456195; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: tj-actions branch-names exploit attempt (CVE-2025-54416)
id: gg-pocmon-cve-2025-54416-9456195
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-54416. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-54416
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/exfil'
cs-uri-query|contains|all:
- 'secret={var})'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.54416