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

- Severity: Critical 9.8 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.40%, higher than 73% of CVEs (2026-12-01)
- Published: 2025-09-30T05:00:06.332Z
- Modified: 2026-06-17T08:29:45.187Z
- Also known as: GHSA-9c4g-fp4r-prrv
- Weaknesses: CWE-77, CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- check-branches: before *
- check-branches (npm): up to 0.0.19

## Every score

- snyk: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://security.snyk.io/vuln/SNYK-JS-CHECKBRANCHES-2766494> (web)
- <https://gist.github.com/lirantal/054b4ad039a86c418f2c84e3e884d6ec> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-11148> (advisory)
- <https://github.com/puntorigen/check-branches> (package)

## Sources

- CVE List: [CVE-2025-11148](https://www.cve.org/CVERecord?id=CVE-2025-11148), CVE Terms of Use, modified 2025-09-30
- GitHub Advisory Database: [GHSA-9c4g-fp4r-prrv](https://github.com/advisories/GHSA-9c4g-fp4r-prrv), CC-BY-4.0, modified 2025-10-03
- NVD: [CVE-2025-11148](https://nvd.nist.gov/vuln/detail/CVE-2025-11148), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-11148 · Whole record: https://cve.day/CVE-2025-11148.json · Rebuilt by cve.day 2026-11-25T22:59:05.340Z
