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.samudev.cloud/mcp (initialize, Authorization: Bearer <made up>)- Answer
200- What we saw
{"jsonrpc":"2.0","result":{"protocolVersion":"2024-11-05","capabilities":{"tools":{}},"serverInfo":{"name":"nexcode-github-mcp","version":"1.1.0"}},"id":1}
Seen in the server's answer
SpecMCP 2026-07-28, Authorization, Token Handling
Medium
Clients cannot find how to sign in
MCPS-AUTH-003Why it mattersThe server wants a sign-in but says neither in its 401 nor at the well-known address where to get a token. Claude, ChatGPT and other clients cannot connect without setup by hand.
How to fixPublish OAuth protected resource metadata (RFC 9728) and name it in the 401's WWW-Authenticate header.
res.status(401).set('WWW-Authenticate', 'Bearer resource_metadata="https://mcp.example.com/.well-known/oauth-protected-resource/mcp"').end()mcp = FastMCP('example', auth=AuthSettings(issuer_url='https://auth.example.com', resource_server_url='https://mcp.example.com/mcp'), token_verifier=verifier)- Request
POST https://mcp.samudev.cloud/mcp (initialize); GET /.well-known/oauth-protected-resource- Answer
200- What we saw
no WWW-Authenticate resource_metadata, no metadata at the well-known addresses
Seen in the server's answer
SpecMCP 2026-07-28, Authorization Server Discovery: Protected Resource Metadata Discovery RequirementsRFC 9728, Section 5.1
Low
No Strict-Transport-Security header
MCPS-HDR-001Why it mattersWithout it, an attacker can keep a browser on plain HTTP on any later visit. HSTS makes the browser use HTTPS only.
How to fixSend Strict-Transport-Security: max-age=31536000 on every HTTPS response.
return new Response(body, { headers: { 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' } })app.use((req, res, next) => { res.setHeader('Strict-Transport-Security', 'max-age=31536000; includeSubDomains'); next() })- Request
POST https://mcp.samudev.cloud/mcp (initialize)- Answer
200- What we saw
no Strict-Transport-Security
Seen in the server's answer
SpecRFC 6797 (HTTP Strict Transport Security)
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.samudev.cloud/mcp (initialize)- Answer
200- What we saw
no X-Content-Type-Options: nosniff
Seen in the server's answer
SpecFetch Standard, X-Content-Type-Options
Low
Answers a request from a foreign website
MCPS-ORIGIN-001Why it mattersThe MCP spec requires a 403 for an Origin the server does not expect. On a public server this keeps other websites' pages from calling it through a visitor's browser; on a server running on someone's own machine, it is what stops a web page from reaching it (DNS rebinding, behind CVE-2025-66414 and CVE-2025-66416).
How to fixWhen an Origin header is present and not on your list, answer 403; requests without one, from programs, keep working. In the official SDKs, turn on DNS rebinding protection and list the allowed origins and hosts.
new StreamableHTTPServerTransport({ enableDnsRebindingProtection: true, allowedOrigins: ['https://claude.ai'], allowedHosts: ['mcp.example.com'] })const origin = request.headers.get('Origin'); if (origin && !ALLOWED.has(origin)) return new Response(null, { status: 403 })- Request
POST https://mcp.samudev.cloud/mcp (initialize, Origin: https://probe.invalid)- Answer
200- What we saw
{"jsonrpc":"2.0","result":{"protocolVersion":"2024-11-05","capabilities":{"tools":{}},"serverInfo":{"name":"nexcode-github-mcp","version":"1.1.0"}},"id":1}
Seen in the server's answer
SpecMCP 2026-07-28, Transports, Streamable HTTP: Security & Endpoint, item 1CVE-2025-66414 (TypeScript SDK), CVE-2025-66416 (Python SDK): DNS rebinding protection off by default