Repository navigation
v4.2.3
latest moves from 4.2.2 to 4.2.3: security fixes and dependency updates. Upgrading is recommended. No new options, and no defaults change.
Security fixes
- SSE sessions. A
sessionIdthat isn't a session this gateway created is now always an unknown session (503), whatever its value (#378) --corsapplies to WebSocket. With origins listed, a web page from another origin can no longer open a WebSocket (403, logged). Clients that aren't browsers send no origin and are unaffected. Bare--cors, and a gateway without--cors, accept what they always have (#378)- Remote servers that redirect. A redirect is still followed. The
--headerand--oauth2Bearervalues go with it on the same origin, or fromhttptohttpson the same host; a redirect to any other origin is followed without them, and logged once - Several servers in one (
combined). A server's capabilities are merged as plain data, whatever keys they contain
Changes
- A warning when any web page can use a WebSocket server. A stdio→WS gateway with neither
--corsnor an API key prints oneWARNING: Neither --cors nor an API key is setline on stderr at startup, even with--logLevel none, and logs each web page origin that connects. It changes nothing else - README: a Security section on
--host,--apiKeyand--cors, and a safer WebSocket example - Dependencies. MCP SDK 1.32.2,
@modelcontextprotocol/serverandclient2.4.0,node2.1.2, and fixed transitive packages. With SDK 1.32.2 a JSON-RPC batch (protocol 2025-03-26) of more than 100 messages to Streamable HTTP output is refused with400, as on every server built on the SDK since 1.30.1; up to 100 are answered as before
Validation
New tests cover each fix end to end on every output and in config files, and each fails without its fix. Nothing else changes for clients: the side-by-side check against 4.1.0–4.2.2 and the own tests of 4.0.0–4.2.2 pass, except the 100-message batch limit above. 2.8.3, 3.4.3 and 4.0.0, as the bridge in front of 4.2.3 or the gateway behind it, work with it exactly as with 4.2.2. The suite also passes on every MCP SDK from 1.18.2 to 1.32.2, with Python, Go and Ruby clients, and in a real browser. 4.2.3-rc.1 passed a 25-hour soak on Linux, Windows and macOS.
Thanks to: