CVE-2025-11285 samanhappy MCPHub serverController.ts os command injection

Medium 5.3 Published Updated

Remote attackers can execute arbitrary OS commands via the command/args arguments in MCPHub, requiring permissions but posing a high risk.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-11285?

CVE-2025-11285 is a medium-severity command injection vulnerability in samanhappy MCPHub, published on 5 Oct 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Weakness: CWE-78, CWE-77

Which versions are affected by CVE-2025-11285?

2 open source packages ship an affected version, including @samanhappy/mcphub. It affects 1 product.

PackageAffectedFixed in
@samanhappy/mcphub npmAll versions to 0.9.10None
@samanhappy/mcphub npmAll versions to 0.9.10None

Products include Mcphubx Mcphub.

How do I fix CVE-2025-11285?

No fix has been published for CVE-2025-11285 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-11285 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-11285 exists.

Sources

Also known as GHSA-5q2p-3jg8-2m98.

Is CVE-2025-11285 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free