CVE-2025-11285: @samanhappy/mcphub MCPHub's ServerController Is Vulnerable To Vulnerability
LOWCVE-2025-11285 is a LOW mcphub's servercontroller is vulnerable to vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting @samanhappy/mcphub libraries in the npm ecosystem. The issue involves mcphub's servercontroller is vulnerable to command injection. Remediation is available in the latest vendor maintenance releases.
CVE-2025-11285 at a Glance
How to Fix CVE-2025-11285
To remediate this vulnerability, upgrade all affected @samanhappy/mcphub 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 @samanhappy/mcphub@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @samanhappy/mcphub
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-11285, inspect your project dependencies using npm:
npm ls @samanhappy/mcphub
Analyze the terminal output to locate any version of @samanhappy/mcphub 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 @samanhappy/mcphub 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-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In @samanhappy/mcphub, 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-11285 Affected @samanhappy/mcphub Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@samanhappy/mcphub
|
npm |
≤ 0.9.10
|
|
References
Frequently Asked Questions
What is CVE-2025-11285?
Which @samanhappy/mcphub versions are affected?
What version fixes CVE-2025-11285?
Is @samanhappy/mcphub affected?
What CWE is associated with CVE-2025-11285?
How can I check npm dependencies for CVE-2025-11285?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5q2p-3jg8-2m98",
"modified" : "2025-10-09T22:18:32Z",
"published" : "2025-10-05T06:30:14Z",
"aliases" : [ "CVE-2025-11285" ],
"summary" : "MCPHub's ServerController is vulnerable to Command Injection",
"details" : "A vulnerability was found in samanhappy MCPHub up to 0.9.10. Affected by this issue is some unknown functionality of the file src/controllers/serverController.ts. The manipulation of the argument command/args results in os command injection. The attack can be launched remotely. The exploit has been made public and could be used. The vendor was contacted early about this disclosure but did not respond in any way.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@samanhappy/mcphub"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.9.10"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-11285"
}, {
"type" : "WEB",
"url" : "https://github.com/August829/YU1/issues/6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/samanhappy/mcphub"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.327043"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.327043"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?submit.659734"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-10-09T22:18:32Z",
"nvd_published_at" : "2025-10-05T06:15:32Z"
}
}