{"id":"CVE-2026-47427","aliases":["CVE-2026-47427","GHSA-w4q6-qw23-4rg7","GO-2026-6118"],"related":[],"kind":"vulnerability","state":"published","title":"GitHub MCP Server: Nil Pointer Dereference DoS in completion/complete Handler","summary":"GitHub MCP Server is GitHub's official MCP Server. Prior to 1.1.0, the CompletionsHandler function in pkg/github/server.go accesses params.Ref without first checking whether it is nil, so a completion/complete request with a missing or empty ref field triggers a nil pointer dereference and a Go runtime panic; because the crash occurs before any authentication or token validation, any unauthenticated client able to send JSON-RPC messages can crash the server, resulting in a complete denial of service. This issue is fixed in version 1.1.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"GitHub MCP Server is GitHub's official MCP Server. Prior to 1.1.0, the CompletionsHandler function in pkg/github/server.go accesses params.Ref without first checking whether it is nil, so a completion/complete request with a missing or empty ref field triggers a nil pointer dereference and a Go runtime panic; because the crash occurs before any authentication or token validation, any unauthenticated client able to send JSON-RPC messages can crash the server, resulting in a complete denial of service. This issue is fixed in version 1.1.0.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nA nil pointer dereference vulnerability in the GitHub MCP Server causes it to crash when receiving a malformed `completion/complete` request with missing or empty parameters. This allows any unauthenticated client to cause a complete denial of service.\n\n### Details\n\nThe `CompletionsHandler` function in `pkg/github/server.go:198` accesses `params.Ref` without checking if it's nil first. When a client sends a `completion/complete` request with a missing `ref` field, the handler dereferences nil and the Go runtime panics.\n\nThe crash occurs before any authentication or token validation, so even requests with fake tokens can trigger it.\n\n### PoC\n\nAfter completing the MCP initialization handshake, send either:\n\n**Empty params:**\n\n    {\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"completion/complete\",\"params\":{}}\n\n**Missing ref field:**\n\n    {\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"completion/complete\",\"params\":{\"argument\":{\"name\":\"x\",\"value\":\"y\"}}}\n\n**Result:**\n\n    panic: runtime error: invalid memory address or nil pointer dereference\n    goroutine 42 [running]:\n    github.com/github/github-mcp-server/pkg/github.NewMCPServer.CompletionsHandler.func1(...)\n        pkg/github/server.go:198 +0x24\n\n### Impact\n\nAny unauthenticated client that can send JSON-RPC messages to the server can crash it immediately. This is a complete denial of service - the panic is unrecoverable and kills the process.\n\nAutomated fuzzing with mcpsec found 108 crashes out of 925 test cases (11.7% crash rate).\n\n### Timeline\n\n- **Feb 21, 2026** - Initial report sent to opensource-security@github.com\n- **Mar 03, 2026** - Follow-up email sent, no response\n- **Mar 21, 2026** - Re-verified on v0.33.0, sent detailed report with PoC, no response\n- **Apr 06, 2026** - GHSA filed after 44 days without acknowledgment\n\n### Suggested Fix\n\n    func (s *Server) CompletionsHandler(ctx context.Context, params *mcp.CompleteParams) (*mcp.CompleteResult, error) {\n        if params == nil || params.Ref == nil {\n            return nil, fmt.Errorf(\"invalid request: missing ref parameter\")\n        }\n        // ... rest of handler\n    }","format":"markdown","source":"ghsa"},{"lang":"en","text":"GitHub MCP Server has Nil Pointer Dereference DoS in completion/complete Handler in github.com/github/github-mcp-server","format":"markdown","source":"go"},{"lang":"es","text":"El Servidor MCP de GitHub es el Servidor MCP oficial de GitHub. Antes de la 1.1.0, la función CompletionsHandler en pkg/github/server.go accede a params.Ref sin verificar primero si es nulo, por lo que una solicitud de completion/complete con un campo ref faltante o vacío desencadena una desreferenciación de puntero nulo y un pánico en tiempo de ejecución de Go; debido a que el fallo ocurre antes de cualquier autenticación o validación de token, cualquier cliente no autenticado capaz de enviar mensajes JSON-RPC puede hacer que el servidor falle, resultando en una denegación de servicio completa. Este problema está solucionado en la versión 1.1.0.","source":"nvd"}],"published":"2026-07-28T14:35:10.000Z","modified":"2026-10-24T13:10:00.147Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"version":"< 1.1.0","status":"affected"}],"vendor":"github","product":"github-mcp-server","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.0"}],"ecosystem":"Go","package":"github.com/github/github-mcp-server","purl":"pkg:golang/github.com/github/github-mcp-server","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.0"}],"ecosystem":"Go","package":"github.com/github/github-mcp-server","purl":"pkg:golang/github.com/github/github-mcp-server","source":"go"},{"ranges":[{"status":"affected","fixed":"1.1.0"}],"vendor":"github","product":"mcp_server","cpe":"cpe:2.3:a:github:mcp_server:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/github/github-mcp-server/security/advisories/GHSA-w4q6-qw23-4rg7","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/github/github-mcp-server/pull/2502","tags":["fix","issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/github/github-mcp-server/commit/c88d2ecdd3bb07f7bdd75296e3ee676febf14f58","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/github/github-mcp-server/releases/tag/v1.1.0","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/github/github-mcp-server","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-07-28T17:31:12.371Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-47427","url":"https://www.cve.org/CVERecord?id=CVE-2026-47427","licence":"CVE Terms of Use","modified":"2026-07-28T17:31:19.108Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w4q6-qw23-4rg7","url":"https://github.com/advisories/GHSA-w4q6-qw23-4rg7","licence":"CC-BY-4.0","modified":"2026-08-18T15:11:03.662Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6118","url":"https://pkg.go.dev/vuln/GO-2026-6118","licence":"CC-BY-4.0","modified":"2026-08-18T15:00:19.847Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-47427","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47427","licence":"Public domain","modified":"2026-10-24T13:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:30.340Z","epss":{"score":0.00442,"percentile":0.40133,"date":"2026-12-01T12:00:22.000Z"}}