Skip to main content

jshookmcp EUVDEUVD-2026-58065

| CVE-2026-49856 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-07-01 https://github.com/vmoranv/jshookmcp GHSA-c5r6-m4mr-8q5j
4.3
CVSS 3.1 · Vendor: https://github.com/vmoranv/jshookmcp
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain MCP client credentials
  2. Delivery
    Connect to jshookmcp network domain over remote transport
  3. Exploit
    Invoke network_icmp_probe or network_traceroute with private RFC 1918 target
  4. Execution
    resolveHostname returns address without SSRF policy check
  5. Persist
    Native ICMP or traceroute sink probes internal host
  6. Impact
    Extract reachability, latency, and hop topology from server network position

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated MCP client (PR:L per CVSS vector) with access to an active network domain on the jshookmcp server - unauthenticated exploitation is not possible. The bypass is specific to two tools: network_icmp_probe and network_traceroute; the remaining network tools (network_rtt_measure, network_latency_stats) enforce the SSRF policy correctly and are not bypassed. On Linux and macOS, raw ICMP probing may require elevated socket privileges (CAP_NET_RAW or root); the advisory notes impact is strongest on Windows or hosts already configured with raw socket capability. The bypass does not apply when ALLOW_LOCAL_SSRF=true is set, because in that configuration all tools already permit private access. Exploitation is strictly limited to internal network topology disclosure - it does not expose HTTP response bodies, credentials, file content, or enable code execution.

Impact

The CVSS 3.1 score of 4.3 (Medium, AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N) accurately reflects the limited blast radius: exploitation requires prior MCP client authentication (PR:L) and the confidentiality impact is restricted to internal network topology disclosure (C:L), not data exfiltration. No EPSS score is available in the provided data, and this CVE does not appear in CISA KEV, indicating no confirmed active exploitation at time of analysis. The RCE tag present in the intelligence metadata is inconsistent with the description and CVSS vector - this vulnerability enables network reconnaissance only, not code execution, and should be disregarded. Risk is elevated in multi-tenant or remotely-exposed deployments (Streamable HTTP transport), on hosts with raw socket capability (required for ICMP), or where jshookmcp server network position bridges internal segments. The proof-of-concept test code included in the advisory removes any meaningful reverse-engineering barrier for a threat actor already holding MCP client credentials.

Exploit ScenarioDerived

An attacker holding valid MCP client credentials connects to a remotely-exposed jshookmcp server and calls network_icmp_probe with target: 10.0.0.1 - an address the server's SSRF policy would block via every other network tool. Because handleNetworkIcmpProbe never calls resolveAuthorizedTransportTarget, the probe reaches the internal host and returns latency, TTL, and ICMP response class. The attacker iterates across RFC 1918 ranges to build a reachability map of the server's internal network segment. Proof-of-concept test code demonstrating this exact dispatch path is included in the advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 01, 2026

SSRF policy bypass in jshookmcp 0.3.1 allows an authenticated MCP client with network domain access to probe internal RFC 1918 and reserved addresses that are explicitly blocked by all other network tools on the same server. The network_icmp_probe and network_traceroute handlers call resolveHostname directly without invoking the central resolveAuthorizedTransportTarget guard, creating an inconsistent enforcement boundary. No CISA KEV listing exists, but proof-of-concept test code demonstrating the bypass via the handleCallTool dispatch path is included in the GitHub advisory (GHSA-c5r6-m4mr-8q5j), confirming exploitability without external traffic.

RemediationAI

The advisory (https://github.com/vmoranv/jshookmcp/security/advisories/GHSA-c5r6-m4mr-8q5j) recommends applying the same authorization model used by network_rtt_measure and network_latency_stats to network_icmp_probe and network_traceroute: accept an optional authorization object, resolve the target through resolveAuthorizedTransportTarget or an equivalent host-only policy helper, block private and reserved ranges by default, and pass only the policy-approved resolved address to native probe sinks. No patched npm release version has been confirmed at time of analysis - operators should monitor the npm registry and GitHub releases for @jshookmcp/jshook. As an interim compensating control, restrict MCP client access to the network domain to explicitly trusted, internal clients only and ensure ALLOW_LOCAL_SSRF is not set to true in the server environment. Disabling the network_icmp_probe and network_traceroute tools entirely via server configuration, if the deployment does not require them, eliminates this attack surface with no side effects on the HTTP/TCP RTT tools.

Affected VersionsENISA

jshookmcp = 0.3.1

Affected Packages

npm @jshookmcp/jshook fix: 0.3.2
euvd jshookmcp no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

jshookmcp is a Node.js MCP (Model Context Protocol) server exposing a network domain of raw probing tools (HTTP RTT, TCP latency, ICMP, traceroute). The central SSRF authorization policy in src/utils/network/ssrf-policy.ts:244-316 (CWE-918) blocks private, loopback, link-local, and reserved targets unless an explicit authorization object is provided or ALLOW_LOCAL_SSRF=true is set. This policy is correctly enforced by network_rtt_measure and network_latency_stats via resolveAuthorizedTransportTarget. However, network_icmp_probe (lines 240-257) and network_traceroute (lines 123-139) in raw-latency-handlers.ts call resolveHostname (lines 408-416) instead - a helper that returns IPv4 literals verbatim and performs plain DNS A lookups with no private-range validation - then pass the resolved address directly to native ICMP and traceroute sinks. The affected package is pkg:npm/@jshookmcp_jshook at version 0.3.1 and main branch commit d309c395.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/vmoranv/jshookmcp) PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 4.3 MEDIUM

PR:L because MCP client authentication is required; C:L limited to internal network topology; no integrity or availability impact; network-reachable with low complexity.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/vmoranv/jshookmcp).

CVSS VectorVendor: https://github.com/vmoranv/jshookmcp

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

DescriptionCVE.org

Summary

The network domain has a central SSRF authorization policy that blocks private, loopback, link-local, and reserved targets unless an explicit authorization object allows private network access. The policy is enforced by raw HTTP/TCP/TLS RTT tools, but the ICMP probe and traceroute tools resolve the target and invoke the native ICMP/traceroute sink directly.

An MCP client with access to an active network domain can therefore ask the jshookmcp server to probe internal addresses such as 10.0.0.1 even when local SSRF access is disabled for the other raw network tools. This exposes an internal reachability and route mapping primitive from the server network position.

Affected code

Current main https://github.com/vmoranv/jshookmcp/commit/d309c395738638e384c28c0f599b47b2213ab595 and npm package @jshookmcp/jshook 0.3.1 both contain the issue.

  • src/server/domains/network/handlers/raw-latency-handlers.ts:61-66: network_rtt_measure parses optional authorization and calls resolveAuthorizedTransportTarget before probing.
  • src/server/domains/network/handlers/raw-latency-handlers.ts:185-190: network_latency_stats uses the same authorization guard.
  • src/server/domains/network/handlers/raw-latency-handlers.ts:123-139: network_traceroute resolves target with resolveHostname and calls traceroute without an authorization policy check.
  • src/server/domains/network/handlers/raw-latency-handlers.ts:240-257: network_icmp_probe resolves target with resolveHostname and calls icmpProbe without an authorization policy check.
  • src/server/domains/network/handlers/raw-latency-handlers.ts:408-416: resolveHostname returns IPv4 literals directly and otherwise performs DNS A lookup without checking private, loopback, link-local, or reserved ranges.
  • src/utils/network/ssrf-policy.ts:244-316: the central policy blocks private targets unless explicit authorization or ALLOW_LOCAL_SSRF=true is set.

Reproduction

Used a focused regression test against the real handleCallTool and RawHandlers call path with fake native ICMP and policy sinks. The test does not send external traffic. It proves the denied control and the bypass through the same MCP meta-tool dispatch path.

Test file path in my local checkout:

text
tests/server/security/jshookmcp-network-meta-boundary.test.ts

Relevant test body:

ts
it('denied control: RTT path consults the SSRF authorization guard for private targets', async () => {
  const handler = new RawHandlers();
  state.resolveAuthorizedTransportTarget.mockRejectedValue(new Error('RTT measurement blocked: target resolves to a private or reserved address.'));
  await expect(handler.handleNetworkRttMeasure({ url: 'https://10.0.0.1/', probeType: 'tcp' })).rejects.toThrow(/blocked/);
  expect(state.resolveAuthorizedTransportTarget).toHaveBeenCalled();
  expect(state.icmpProbe).not.toHaveBeenCalled();
});

it('bypass proof: call_tool can drive network_icmp_probe to a private IP without the SSRF authorization guard', async () => {
  const raw = new RawHandlers();
  const ctx = {
    router: { has: vi.fn((name: string) => name === 'network_icmp_probe') },
    executeToolWithTracking: vi.fn((name: string, args: Record<string, unknown>) => raw.handleNetworkIcmpProbe(args)),
  } as any;

  const response = await handleCallTool(ctx, { name: 'network_icmp_probe', args: { target: '10.0.0.1', ttl: 64 } });
  const body = JSON.parse(response.content[0].text);

  expect(body.success).toBe(true);
  expect(ctx.router.has).toHaveBeenCalledWith('network_icmp_probe');
  expect(ctx.executeToolWithTracking).toHaveBeenCalledWith('network_icmp_probe', { target: '10.0.0.1', ttl: 64 });
  expect(state.resolveAuthorizedTransportTarget).not.toHaveBeenCalled();
  expect(state.icmpProbe).toHaveBeenCalledWith(expect.objectContaining({ target: '10.0.0.1', ttl: 64 }));
});

Command run:

bash
corepack pnpm exec vitest run --config vitest.config.ts tests/server/security/jshookmcp-network-meta-boundary.test.ts --reporter=verbose

Result:

text
Test Files  1 passed (1)
Tests       4 passed (4)

The observed vulnerable call sequence is:

text
call_tool(name=network_icmp_probe, args={target: 10.0.0.1, ttl: 64})
  -> ctx.router.has(network_icmp_probe) == true
  -> ctx.executeToolWithTracking(network_icmp_probe, validatedArgs)
  -> RawHandlers.handleNetworkIcmpProbe(validatedArgs)
  -> resolveHostname(10.0.0.1) returns 10.0.0.1
  -> icmpProbe({ target: 10.0.0.1, ttl: 64, ... })

resolveAuthorizedTransportTarget is not called on this path. The same missing policy pattern exists for network_traceroute.

Impact

An MCP client with access to the active network domain can use the server as a backend-origin internal network probing oracle. The result can reveal whether internal hosts respond, approximate latency, traceroute hops, and ICMP error classes from the server network position.

The practical impact is strongest when jshookmcp is exposed over Streamable HTTP or another remote transport, multiple clients share one server, or the server runs on Windows or with raw socket capability. This is not code execution and does not by itself exfiltrate response bodies.

Remediation

Apply the same authorization model used by network_rtt_measure and network_latency_stats to network_icmp_probe and network_traceroute. In particular, accept an optional authorization object, resolve the target through the central policy helper or an equivalent host-only policy helper, block private and reserved ranges by default, and pass only the policy-approved resolved address to the native probe. Add regression tests for default-denied private targets, authorized private CIDR access, private hostnames, and call_tool dispatch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Rare
niche MCP server npm package, limited documented enterprise footprint
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy