Advisory

GHSA-9c4g-fp4r-prrv

Also known as: CVE-2025-11148

Summary

check-branches is vulnerable to command Injection

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2025-09-30 12:30 UTC
Modified
2025-10-03 18:22 UTC

Affected packages and fixes

check-branches

npm · All systems

Affected

  • introduced 0, last affected 0.0.19 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences