The vulnerability, identified as GHSA-c5r6-m4mr-8q5j, is a Server-Side Request Forgery (SSRF) in the '@jshookmcp/jshook' package. The core of the issue lies in the network_icmp_probe and network_traceroute tools. The handlers for these tools, RawLatencyHandlers.handleNetworkIcmpProbe and RawLatencyHandlers.handleNetworkTraceroute, used an insecure helper function, resolveHostname, to resolve the target address provided by the user.
The resolveHostname function would perform a DNS lookup or accept an IP address directly without validating if the target was a private, reserved, or loopback address. This allowed any user with access to these tools to perform network reconnaissance on the server's internal network, identifying live hosts and mapping network routes.
The patch rectifies this by completely removing the resolveHostname function. Instead, the handleNetworkIcmpProbe and handleNetworkTraceroute functions were updated to use a new, secure helper function, resolveAuthorizedHostTarget. This new function integrates with the existing network authorization policy, ensuring that all target addresses are validated and that probes to private networks are blocked unless explicitly authorized. The patch also includes extensive regression tests to verify that the SSRF vulnerability is closed.