Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. check-branches
  4. ›
  5. CVE-2025-11148

CVE-2025-11148: check-branches is vulnerable to command Injection

September 30, 2025 (updated October 3, 2025)

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.

References

  • gist.github.com/lirantal/054b4ad039a86c418f2c84e3e884d6ec
  • github.com/advisories/GHSA-9c4g-fp4r-prrv
  • github.com/puntorigen/check-branches
  • nvd.nist.gov/vuln/detail/CVE-2025-11148
  • security.snyk.io/vuln/SNYK-JS-CHECKBRANCHES-2766494

Code Behaviors & Features

Detect and mitigate CVE-2025-11148 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 0.0.19

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/check-branches/CVE-2025-11148.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:18 +0000.