CVE-2026-49856: @jshookmcp/jshook: ICMP probe and traceroute skip local-network SSRF authorization
The jshookmcp server (`@jshookmcp/jshook`) enforces an SSRF policy on its raw RTT tools, but its `network_icmp_probe` and `network_traceroute` tools skip it. An MCP client can probe internal addresses such as 10.0.0.1 and map routes from the server's network position. Version 0.3.1 is affected. Upgrade to 0.3.2.
Published Jul 1, 2026 · Analysis Oct 25, 2026
What an attacker can do
The network domain has a central policy in src/utils/network/ssrf-policy.ts that blocks private, loopback, link-local and reserved targets unless an authorization object allows them. network_rtt_measure and network_latency_stats call resolveAuthorizedTransportTarget first. In raw-latency-handlers.ts, network_icmp_probe and network_traceroute instead call resolveHostname, which returns an IPv4 literal as is and does no range check, and then call the native ICMP or traceroute sink.
The reporter's regression test used call_tool with network_icmp_probe and {target: '10.0.0.1', ttl: 64}. The probe ran and the authorization helper was never called.
The attacker needs to be an MCP client with access to the network domain. This can be an agent steered by prompt injection. They learn whether internal hosts respond, approximate latency, traceroute hops and ICMP error classes. The advisory says this is not code execution and does not leak response bodies. It matters most when the server is exposed over Streamable HTTP or another remote transport, is shared by several clients, or runs on Windows or with raw socket capability.
Who is affected
Affected: npm @jshookmcp/jshook version 0.3.1, and the main branch at commit d309c39. The advisory lists exactly = 0.3.1 as the vulnerable version.
npm ls -g @jshookmcp/jshookThe flaw is reachable only if the network domain is active in your server configuration.
@jshookmcp/jshook
- Ecosystem
- npm
- Affected
- = 0.3.1
- Fixed in
- 0.3.2
- Check
npm ls @jshookmcp/jshook
How to fix it
Upgrade to @jshookmcp/jshook 0.3.2.
npm install -g @jshookmcp/[email protected]If your MCP host config pins a version, change it and restart the host. The advisory lists no workaround. Its remediation applies the same authorization model as the RTT tools to the ICMP probe and traceroute tools. Until you upgrade, avoid exposing the server over a remote transport, and do not share it between clients.
How to tell if you were hit
Review the server's tool-call log for network_icmp_probe and network_traceroute calls whose target is a private, loopback or link-local address such as 10.x, 192.168.x or 127.x. A sweep of many sequential addresses is a scan. Check firewall logs for ICMP from the server host to internal ranges. Beam records agent MCP tool calls, so calls to these tools by an agent can be reviewed there.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
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:
tests/server/security/jshookmcp-network-meta-boundary.test.tsRelevant test body:
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:
corepack pnpm exec vitest run --config vitest.config.ts tests/server/security/jshookmcp-network-meta-boundary.test.ts --reporter=verboseResult:
Test Files 1 passed (1)
Tests 4 passed (4)The observed vulnerable call sequence is:
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.
Credited to DavidCarliez.
Questions
- Is @jshookmcp/jshook 0.3.1 affected by CVE-2026-49856?
Yes. Version 0.3.1 is the affected version, and 0.3.2 is the patched one.
- Can this read data from internal services?
No. The advisory says it is not code execution and does not exfiltrate response bodies. It reveals reachability, latency, traceroute hops and ICMP error classes.
- Why do the RTT tools not have this problem?
network_rtt_measureandnetwork_latency_statscallresolveAuthorizedTransportTarget, which applies the SSRF policy. The ICMP probe and traceroute handlers did not.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Other MCP servers and tools vulnerabilities
All Other MCP servers and tools entriesCVE-2026-77361
obsidian-tc : Symlink read-ACL scope bypass via lexical path checks
medium4.7Oct 23, 2026CVE-2026-114126
Storybook dev server vulnerable to code injection from the local network
high8.7Oct 22, 2026CVE-2026-113731
djust: Arbitrary absolute-path file read in the find_handlers_for_template MCP tool
low3.3Oct 21, 2026CVE-2026-114125
Storybook: Missing origin validation in Storybook preview allows code injection from malicious websites
critical9.4Oct 21, 2026CVE-2026-111770
MCP TypeScript server SDK: Shared transport or server instances delivered one HTTP client's messages to another
high7.7Oct 20, 2026GHSA-953h-535j-jg2v
agent-router: MCP session resume does not verify the embedded anti-hijacking subject; default Helm seed makes session IDs forgeable
medium6.8Oct 19, 2026
