tj-actions/branch-names Contains Command Injection Vulnerability

CVE Details

Basic Information

Title tj-actions/branch-names Contains Command Injection Vulnerability
Type cve
Published 2025-07-26T03:34:31.288Z
Modified 2025-07-26T03:34:31.288Z

Product Information

Vendor tj-actions
Product branch-names
Version < 9.0.0

CVSS Information

Base Score 9.1 (CRITICAL)
Attack Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L

AI Analysis

AI Description A critical command injection vulnerability in tj-actions/branch-names GitHub Action allows arbitrary command execution in downstream workflows due to improper input sanitization. This issue is fixed in version 9.0.0.
AI Severity Critical
AI Vendor tj-actions
AI Product tj-actions/branch-names
AI Version versions below 9.0.0

Affected Products

  • tj-actions branch-names < 9.0.0

Additional Information

CWE List CWE-77
Source 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

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.