PT-2025-40040 · Npm · Check-Branches

Published

2025-09-30

·

Updated

2025-09-30

CVSS v4.0

9.3

Critical

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
All versions of the package check-branches are vulnerable to Command Injection.
check-branches is a command-line tool that is interacted with locally, or via CI, to confirm no conflicts exist in git branches.
However, the library follows these conventions which can be abused:
  1. It trusts branch names as they are (plain text)
  2. It spawns git commands by concatenating user input
Since a branch name is potentially a user input - as users can create branches remotely via pull requests, or simply due to privileged access to a repository - it can effectively be abused to run any command.

Fix

Command Injection

OS Command Injection

Weakness Enumeration

Related Identifiers

GHSA-9C4G-FP4R-PRRV

Affected Products

Check-Branches