CVE-2025-11287: @samanhappy/mcphub MCPHub Has An Improper Authorization Vulnerability
MODERATECVE-2025-11287 is a MODERATE mcphub has an improper authorization vulnerability (CWE-287: Improper Authentication) affecting @samanhappy/mcphub libraries in the npm ecosystem. The issue involves mcphub has an improper authorization vulnerability via its handlesseconnection function. Remediation is available in the latest vendor maintenance releases.
CVE-2025-11287 at a Glance
How to Fix CVE-2025-11287
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-11287, 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. 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-11287 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-11287?
Which @samanhappy/mcphub versions are affected?
What version fixes CVE-2025-11287?
Is @samanhappy/mcphub affected?
What CWE is associated with CVE-2025-11287?
How can I check npm dependencies for CVE-2025-11287?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v7c4-33vf-cqqq",
"modified" : "2025-10-09T22:17:58Z",
"published" : "2025-10-05T09:30:19Z",
"aliases" : [ "CVE-2025-11287" ],
"summary" : "MCPHub has an Improper Authorization vulnerability via its handleSseConnection function",
"details" : "A vulnerability was identified in samanhappy MCPHub up to 0.9.10. This vulnerability affects the function handleSseConnection of the file src/services/sseService.ts. Such manipulation leads to improper authentication. The attack may be launched remotely. The exploit is publicly available and might 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:N/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-11287"
}, {
"type" : "WEB",
"url" : "https://github.com/August829/YU1/issues/8"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/samanhappy/mcphub"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.327045"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.327045"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?submit.661170"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-10-09T22:17:58Z",
"nvd_published_at" : "2025-10-05T07:15:33Z"
}
}