Affected by GO-2026-4569
and 2 other vulnerabilities
GO-2026-4569: MCP Go SDK Vulnerable to Improper Handling of Case Sensitivity in github.com/modelcontextprotocol/go-sdk
GO-2026-4770: Improper handling of null Unicode character when parsing JSON in github.com/modelcontextprotocol/go-sdk
GO-2026-4773: Cross-Site Tool Execution for HTTP Servers without Authorizatrion in github.com/modelcontextprotocol/go-sdk
package
Version:
v1.1.0-pre.2
Opens a new window with list of versions in this module.
Published: Oct 29, 2025
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 24
Opens a new window with list of known importers.
Documentation
¶
Package jsonrpc exposes part of a JSON-RPC v2 implementation
for use by mcp transport authors.
EncodeMessage serializes a JSON-RPC message to its wire format.
ID is a JSON-RPC request ID.
MakeID coerces the given Go value to an ID. The value should be the
default JSON marshaling of a Request identifier: nil, float64, or string.
Returns an error if the value type was not a valid Request ID type.
Message is a JSON-RPC message.
DecodeMessage deserializes JSON-RPC wire format data into a Message.
It returns either a Request or Response based on the message content.
Request is a JSON-RPC request.
Response is a JSON-RPC response.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.