CVE-2025-13822: @samanhappy/mcphub Authentication Bypass Vulnerability

MODERATE
Advisory Identifier: GHSA-9vq7-9h42-j88h
CWE-639
Published
Advisory Summary

CVE-2025-13822 is a MODERATE authentication bypass vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting @samanhappy/mcphub libraries in the npm ecosystem. The issue involves mcphub has an authentication bypass. Remediation is available by upgrading affected packages to version 0.11.0.

CVE-2025-13822 at a Glance

CVE Identifier CVE-2025-13822
GHSA Identifier GHSA-9vq7-9h42-j88h
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product @samanhappy/mcphub
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-13822

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: 0.11.0
npm install @samanhappy/mcphub@0.11.0
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-13822, 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 0.11.0), 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-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. 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

MCPHub in versions below 0.11.0 is vulnerable to authentication bypass. Some endpoints are not protected by authentication middleware, allowing an unauthenticated attacker to perform actions in the name of other users and using their privileges.

CVE-2025-13822 Affected @samanhappy/mcphub Versions

1 component(s)
Fixed Versions:
0.11.0
Product / Package Ecosystem Affected Versions Fixed Version
@samanhappy/mcphub
npm
< 0.11.0
0.11.0

References

Frequently Asked Questions

What is CVE-2025-13822?
CVE-2025-13822 is a security vulnerability in @samanhappy/mcphub involving MCPHub has an authentication bypass under CWE-639: Authorization Bypass Through User-Controlled Key.
Which @samanhappy/mcphub versions are affected?
Affected versions include releases prior to 0.11.0 across affected packages: @samanhappy/mcphub.
What version fixes CVE-2025-13822?
Upgrading to 0.11.0 (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 0.11.0. Upgrade your dependency to 0.11.0 or later.
What CWE is associated with CVE-2025-13822?
CVE-2025-13822 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check npm dependencies for CVE-2025-13822?
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-9vq7-9h42-j88h",
  "modified" : "2026-04-15T19:42:53Z",
  "published" : "2026-04-14T12:31:28Z",
  "aliases" : [ "CVE-2025-13822" ],
  "summary" : "MCPHub has an authentication bypass",
  "details" : "MCPHub in versions below 0.11.0 is vulnerable to authentication bypass. Some endpoints are not protected by authentication middleware, allowing an unauthenticated attacker to perform actions in the name of other users and using their privileges.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@samanhappy/mcphub"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.11.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-13822"
  }, {
    "type" : "WEB",
    "url" : "https://cert.pl/en/posts/2026/04/CVE-2025-13822"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/samanhappy/mcphub"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-639" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-15T19:42:53Z",
    "nvd_published_at" : "2026-04-14T11:16:24Z"
  }
}