MCP: upgrade mcp/sdk 0.8.1 to 0.9+ (GHSA-f4rf-6ghj-mhr6; breaking auth API) #138
Open
opened 2026-11-29 00:17:13 -05:00 by jared
·
0 comments
No Branch/Tag Specified
main
ci-standard
deps-symfony-http-client
ci-playwright-ui
development
pr-133-screenshots
auto-reopen-bypass-workflow
pr-124-screenshots
dedup-key-contract
mcp-comment-edit-delete
pr-120-screenshots
pr-119-screenshots
fix-114-description-markdown
fix/comment-markdown-persist-18
deploy-2026.11.29-357
deploy-2026.11.29-347
deploy-2026.11.28-337
deploy-2026.11.27-327
deploy-2026.11.25-317
deploy-2026.11.11-291
deploy-2026.10.03-279
deploy-2026.10.03-275
deploy-2026.09.26-272
deploy-2026.09.25-268
deploy-2026.09.25-264
deploy-2026.09.24-258
deploy-2026.09.24-254
deploy-2026.09.12-242
deploy-2026.09.12-238
deploy-2026.09.12-234
deploy-2026.09.12-230
deploy-2026.09.12-226
deploy-2026.09.12-222
deploy-2026.09.11-218
deploy-2026.09.11-214
deploy-2026.09.11-210
deploy-2026.09.11-206
deploy-2026.09.11-202
deploy-2026.09.11-198
deploy-2026.09.11-194
deploy-2026.09.11-190
deploy-2026.09.11-186
deploy-2026.09.09-182
deploy-2026.09.09-178
deploy-2026.09.08-172
deploy-2026.09.01-163
deploy-2026.08.08-155
deploy-2026.08.08-151
deploy-2026.08.08-147
deploy-2026.08.08-143
deploy-2026.08.08-139
deploy-2026.07.15-130
deploy-2026.07.15-122
deploy-2026.07.11-107
deploy-2026.06.30-96
deploy-2026.06.30-92
deploy-2026.06.30-88
deploy-2026.06.30-84
deploy-2026.06.30-80
deploy-2026.06.30-76
deploy-2026.06.30-72
deploy-2026.06.30-68
deploy-2026.04.29-49
deploy-2026.04.29-41
deploy-2026.04.18-35
deploy-2026.04.16-31
deploy-2026.04.16-27
deploy-2026.04.16-23
deploy-2026.04.16-11
deploy-2026.04.14-9
Labels
Clear labels
api
bug
concurrency
config
data-integrity
dead-code
documentation
duplicate
enhancement
help wanted
invalid
needs-decision
notifications
performance
priority/docs
priority/high
priority/low
priority/medium
question
rate-limiting
reliability
security
ux
wontfix
workflow
Bearer/internal API surface
Something is not working
Race condition / concurrency bug
Configuration / deployment default
Data correctness / schema / integrity issue
Unused / dead code cleanup
README / docs accuracy
This issue or pull request already exists
New feature
Need some help
Something is wrong
Needs a maintainer decision, not clearly a bug
Matrix / in-app notification bug
Performance or resource-usage concern
Documentation-only gap
High-severity / high-impact issue
Low-severity / cosmetic issue
Medium-severity issue
More information is needed
Rate limiting behavior
Reliability / error-handling gap
Security or access-control impact
User-facing UX/functional bug
This won't be fixed
Ticket status workflow engine
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: LotusGuild/tinker_tickets#138
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
composer audit(being added to CI in #136) flagsmcp/sdk0.8.1 with GHSA-f4rf-6ghj-mhr6 (low): "OAuth middleware endpoints bypass request body limits and allow unauthenticated memory exhaustion". It affects 0.8.0 to 0.8.1 and is fixed in 0.9.0.Is Tinker exposed?
No, as far as I can tell. The advisory is about the SDK's
/tokenendpoint (OAuthProxyMiddleware) and/registerendpoint (ClientRegistrationMiddleware) reading request bodies without the transport's 4 MiB limit.mcp/server.phpuses neither. Its middleware is:ProtectedResourceMetadataMiddlewareAuthorizationMiddleware, withJwtTokenValidator,JwksProviderandOidcDiscoveryagainst AutheliaCorsMiddlewareDnsRebindingProtectionMiddlewareTokens come from Authelia, never from Tinker. Until the upgrade, CI's
composer auditignores this one advisory, with that reason recorded incomposer.json.Why it isn't a one-line bump
0.9.0 narrows authorization to the resource-server role, with several BC breaks in exactly the classes Tinker uses (from the 0.9.0 release notes):
JwksProvider,JwksProviderInterfaceandOidcDiscoveryInterfaceare removed, andOidcDiscoverybecomes internal.JwtTokenValidatorbecomes final:JwtTokenValidator::fromIssuer(), which caches keys in a PSR-6 pool;requireScopes()is replaced byScopePolicy.AuthorizationMiddlewaretakes aScopePolicy, which answers403 insufficient_scopeper method and tool. This replaces the read/write split inToolCatalog.ProtectedResourceMetadatarequires$resourceand serves at the RFC 9728 path derived from it.DnsRebindingProtectionMiddlewaregets a separateallowedOrigins, which is empty by default.OAuthRequestMetaMiddlewareis replaced byRequestContext::getAccessToken(), which affects howMcpIdentitygets the user.Mcp\ServerbecomesMcp\Server\Server, andMcp\Capability\*moves toMcp\Server\Capability\*.What to do
mcp/server.php,mcp/src/Auth/*andToolCatalog:ScopePolicy(tickets:read/tickets:write);RequestContext::getAccessToken().resource,authorization_serversandscopes_supportedat/.well-known/oauth-protected-resource/mcp, so existing Claude Code logins keep working.tests/api/mcp_test.php(#136) for the tools;/mcp: no token gives 401 with aresource_metadatachallenge; an unknownkidgives 401invalid_token; a read-scope token calling a write tool gives 403.audit.ignoreentry fromcomposer.json.Related: #136 (CI standard), #137 (the symfony/http-client advisories, a patch bump).
🤖 Generated with Claude Code