User Impersonation Affecting @samanhappy/mcphub package, versions <0.12.17


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-SAMANHAPPYMCPHUB-16726193
  • published17 May 2026
  • disclosed14 May 2026
  • creditibrahmsql

Introduced: 14 May 2026

New CVE NOT AVAILABLE CWE-290  (opens in a new tab)

How to fix?

Upgrade @samanhappy/mcphub to version 0.12.17 or higher.

Overview

@samanhappy/mcphub is an A hub server for mcp servers

Affected versions of this package are vulnerable to User Impersonation via the sseUserContextMiddleware process. An attacker can gain unauthorized access to user sessions and perform actions as any user, including administrators, by supplying arbitrary usernames in the URL path without authentication. This is only exploitable if bearer authentication is disabled or not configured.

CVSS Base Scores

version 4.0
version 3.1