Medium
Answers initialize with a made-up token
MCPS-AUTH-001Why it mattersThe server refused a request without a token, then answered initialize with a token we made up. We call no tool, so this does not show that such a token reaches any data: some servers check it later, when a tool is called.
How to fixCheck the token on every request, initialize included, and answer an invalid one with 401.
- Request
POST https://mcp.assemblyai.com/mcp (initialize, Authorization: Bearer <made up>)- Answer
200- What we saw
event: message data: {"result":{"protocolVersion":"2025-06-18","capabilities":{"tools":{"listChanged":true}},"serverInfo":{"name":"mcp-typescript server on vercel","version":"0.1.0"}},"jsonrpc":"2.0","id":1}
Seen in the server's answer
SpecMCP 2026-07-28, Authorization, Token Handling
Low
No X-Content-Type-Options: nosniff
MCPS-HDR-002Why it mattersA browser may guess a response's type and render JSON or text as HTML or script.
How to fixSend X-Content-Type-Options: nosniff on every response.
res.setHeader('X-Content-Type-Options', 'nosniff')- Request
POST https://mcp.assemblyai.com/mcp (initialize)- Answer
401- What we saw
no X-Content-Type-Options: nosniff
Seen in the server's answer
SpecFetch Standard, X-Content-Type-Options
Low
Implicit flow advertised
MCPS-AUTH-009Why it mattersThe implicit flow puts the access token in the browser's address. RFC 9700 advises against it, and OAuth 2.1 drops it.
How to fixRemove token from response_types_supported and use the code flow with PKCE.
- Request
GET https://auth.assemblyai.com/.well-known/oauth-authorization-server- What we saw
response_types_supported: ["code","code token"]
Seen in the server's answer
SpecRFC 9700, Section 2.1.2 (Implicit Grant)
Low
Refresh tokens without an advertised revocation endpoint
MCPS-AUTH-012Why it mattersA long-lived refresh token that leaks keeps working until it expires.
How to fixPublish a revocation_endpoint (RFC 7009) and rotate refresh tokens.
- Request
GET https://auth.assemblyai.com/.well-known/oauth-authorization-server- What we saw
refresh_token granted; no revocation_endpoint
Seen in the server's answer
SpecRFC 7009 (Token Revocation); RFC 8414, Section 2 (revocation_endpoint)