CVE-2025-11148: Check branches Check-branches Is Vulnerable To Command Vulnerability
CRITICALCVE-2025-11148 is a CRITICAL (CVSS 9.8) check-branches is vulnerable to command vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Check branches libraries in the npm ecosystem. The issue involves check-branches is vulnerable to command injection. Remediation is available in the latest vendor maintenance releases.
CVE-2025-11148 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2025-11148
To remediate this vulnerability, upgrade all affected Check branches dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install check-branches@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls check-branches
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-11148, inspect your project dependencies using npm:
npm ls check-branches
Analyze the terminal output to locate any version of Check branches in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls check-branches command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Check branches, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-11148 Affected Check branches Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
check-branches
|
npm |
≤ 0.0.19
|
|
References
Frequently Asked Questions
What is CVE-2025-11148?
Which Check branches versions are affected?
What version fixes CVE-2025-11148?
Is check-branches affected?
What is the CVSS score of CVE-2025-11148?
What CWE is associated with CVE-2025-11148?
How can I check npm dependencies for CVE-2025-11148?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9c4g-fp4r-prrv",
"modified" : "2025-10-03T18:22:21Z",
"published" : "2025-09-30T12:30:51Z",
"aliases" : [ "CVE-2025-11148" ],
"summary" : "check-branches is vulnerable to command Injection",
"details" : "All versions of the package check-branches are vulnerable to Command Injection.\n\ncheck-branches is a command-line tool that is interacted with locally, or via CI, to confirm no conflicts exist in git branches.\n\nHowever, the library follows these conventions which can be abused:\n1. It trusts branch names as they are (plain text)\n2. It spawns git commands by concatenating user input\n\nSince 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" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "check-branches"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.0.19"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-11148"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/lirantal/054b4ad039a86c418f2c84e3e884d6ec"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/puntorigen/check-branches"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-CHECKBRANCHES-2766494"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77", "CWE-78" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-30T21:08:04Z",
"nvd_published_at" : "2025-09-30T11:37:38Z"
}
}