CVE-2025-11148
CRITICAL 9.8CVSS 3.1check-branches is vulnerable to command Injection
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:
- It trusts branch names as they are (plain text)
- 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.
- Published
- 30 Sep 2025
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Deferred
- Weakness
- CWE-77CWE-78
- Also known as
- GHSA-9c4g-fp4r-prrv
- Sources
- NVDJSONOSV GHSA-9c4g-fp4r-prrvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | check-branches | <= 0.0.19 |
References
- https://gist.github.com/lirantal/054b4ad039a86c418f2c84e3e884d6ec · WEB
- https://security.snyk.io/vuln/SNYK-JS-CHECKBRANCHES-2766494 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-11148 · ADVISORY
- https://github.com/puntorigen/check-branches · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 30 Sep 2025)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 30 Sep 2025)