You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ef2592d
Browse filesBrowse the repository at this point in the historyBrowse files
fix(security): attach HTTP auth middleware to served app under --sse-response (GHSA-8353-5qhw-8hfw) (#151)
* fix(security): attach HTTP auth middleware to served app under --sse-response (GHSA-8353-5qhw-8hfw)
The streamable-http auth gate was attached to the response app selected by
json_response, so under --sse-response it landed on an app that is not served
and the auth check did not run. Attach AuthInjectionMiddleware to the served
streamable_http_app unconditionally (independent of response format), with the
SSE app covered for defense-in-depth. Default JSON mode was unaffected.
Adds regression tests asserting the served app rejects unauthenticated requests
in both JSON and --sse-response modes, plus a fix for a latent late-binding
closure in the app-provider patch loop. Documents the HTTP per-request auth
model in STREAMABLE_HTTP_SETUP.md and the advisory in SECURITY.md.
Bump to 1.0.119.
* chore(release): bump server.json to 1.0.119 to match pyproject
logger.error("mcp_server.streamable_http_app not found or not callable — the served streamable-http app cannot be protected with AuthInjectionMiddleware.")
0 commit comments