CVE-2025-11287: @samanhappy/mcphub MCPHub Has An Improper Authorization Vulnerability

MODERATE
Advisory Identifier: GHSA-v7c4-33vf-cqqq
CWE-287
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-11287
GHSA Identifier GHSA-v7c4-33vf-cqqq
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-287: Improper Authentication
Affected Product @samanhappy/mcphub
Package Ecosystem npm
Published Date
Last Updated

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.

@samanhappy/mcphub fixed: Latest secure release
npm install @samanhappy/mcphub@Latest secure release
Verify Direct and Transitive Dependencies

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

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.

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?
CVE-2025-11287 is a security vulnerability in @samanhappy/mcphub involving MCPHub has an Improper Authorization vulnerability via its handleSseConnection function under CWE-287: Improper Authentication.
Which @samanhappy/mcphub versions are affected?
Affected versions include releases prior to current release patches across affected packages: @samanhappy/mcphub.
What version fixes CVE-2025-11287?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is @samanhappy/mcphub affected?
Yes, @samanhappy/mcphub is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2025-11287?
CVE-2025-11287 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check npm dependencies for CVE-2025-11287?
Run the dependency tree command: 'npm ls @samanhappy/mcphub'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}