Affected by GO-2026-5996
and 2 other vulnerabilities
GO-2026-5996: ToolHive: SSRF guard misses IPv6 NAT64 ranges (64:ff9b::/96, 64:ff9b:1::/48), allowing metadata/internal access behind a NAT64 gateway in github.com/stacklok/toolhive
GO-2026-6002: ToolHive: SSRF in remote MCP server authentication discovery (host-side, bypasses container isolation) in github.com/stacklok/toolhive
GO-2026-6526: ToolHive: containerized MCP servers can reach host services via host.docker.internal, enabling lateral movement in github.com/stacklok/toolhive
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Code extracts the HTTP status code from an error.
It unwraps the error chain looking for a CodedError.
If no CodedError is found, it returns http.StatusInternalServerError (500).
WithCode wraps an error with an HTTP status code.
The returned error implements Unwrap() for use with errors.Is() and errors.As().
If err is nil, WithCode returns nil.
type CodedError struct {
// contains filtered or unexported fields
}
CodedError wraps an error with an HTTP status code.
This allows errors to carry their intended HTTP response code through the call stack,
enabling centralized error handling in API handlers.