check-branches@0.0.1 vulnerabilities

CLI to automatically check if your current repo branch has any conflicts with all other repo's branches. Really useful when working with big teams.

Direct Vulnerabilities

Known vulnerabilities in the check-branches package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • C
Command Injection

check-branches is a CLI to automatically check if your current repo branch has any conflicts with all other repo's branches. Really useful when working with big teams.

Affected versions of this package 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.

How to fix Command Injection?

There is no fixed version for check-branches.

*