Vulnerabilities in pkg:golang/github.com/github/github-mcp-server

PACKAGE
Advisory Identifier: GHSA-w4q6-qw23-4rg7
Advisory Summary

CVE-2026-47427 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-476: NULL Pointer Dereference) affecting Github.com/github/github mcp server libraries in the Go ecosystem. The issue involves github mcp server has nil pointer dereference dos in completion/complete handler. Remediation is available by upgrading affected packages to version 1.1.0.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/github/github-mcp-server

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/github/github-mcp-server. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-w4q6-qw23-4rg7 CVE-2026-47427 HIGH GitHub MCP Server has Nil Pointer Dereference DoS in completion/complete Handler
GHSA-pjp5-fpmr-3349 CVE-2026-48529 MODERATE GitHub MCP Server: Lockdown mode singleton in HTTP server causes cross-user GraphQL client confusion

CVE-2026-47427 at a Glance

CVE Identifier CVE-2026-47427
GHSA Identifier GHSA-w4q6-qw23-4rg7
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-476: NULL Pointer Dereference
Affected Product Github.com/github/github mcp server
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-47427

To remediate this vulnerability, upgrade all affected Github.com/github/github mcp server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/github/github-mcp-server fixed: 1.1.0
Upgrade github.com/github/github-mcp-server to 1.1.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/github/github-mcp-server

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-47427, inspect your project dependencies for Github.com/github/github mcp server:

inspect dependencies for github.com/github/github-mcp-server

Analyze the terminal output to locate any version of Github.com/github/github mcp server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-476: NULL Pointer Dereference, where the product dereferences a pointer that it expects to be valid but is null. In Github.com/github/github mcp server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary A 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. ### Details The `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. The crash occurs before any authentication or token validation, so even requests with fake tokens can trigger it. ### PoC After completing the MCP initialization handshake, send either: **Empty params:** {"jsonrpc":"2.0","id":2,"method":"completion/complete","params":{}} **Missing ref field:** {"jsonrpc":"2.0","id":2,"method":"completion/complete","params":{"argument":{"name":"x","value":"y"}}} **Result:** panic: runtime error: invalid memory address or nil pointer dereference goroutine 42 [running]: github.com/github/github-mcp-server/pkg/github.NewMCPServer.CompletionsHandler.func1(...) pkg/github/server.go:198 +0x24 ### Impact Any 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. Automated fuzzing with mcpsec found 108 crashes out of 925 test cases (11.7% crash rate). ### Timeline - **Feb 21, 2026** - Initial report sent to opensource-security@github.com - **Mar 03, 2026** - Follow-up email sent, no response - **Mar 21, 2026** - Re-verified on v0.33.0, sent detailed report with PoC, no response - **Apr 06, 2026** - GHSA filed after 44 days without acknowledgment ### Suggested Fix func (s *Server) CompletionsHandler(ctx context.Context, params *mcp.CompleteParams) (*mcp.CompleteResult, error) { if params == nil || params.Ref == nil { return nil, fmt.Errorf("invalid request: missing ref parameter") } // ... rest of handler }

CVE-2026-47427 Affected Github.com/github/github mcp server Versions

1 component(s)
Fixed Versions:
1.1.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/github/github-mcp-server
Go
< 1.1.0
1.1.0

References

Frequently Asked Questions

What is CVE-2026-47427?
CVE-2026-47427 is a security vulnerability in Github.com/github/github mcp server involving GitHub MCP Server has Nil Pointer Dereference DoS in completion/complete Handler under CWE-476: NULL Pointer Dereference.
Which Github.com/github/github mcp server versions are affected?
Affected versions include releases prior to 1.1.0 across affected packages: github.com/github/github-mcp-server.
What version fixes CVE-2026-47427?
Upgrading to 1.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/github/github-mcp-server affected?
Yes, github.com/github/github-mcp-server is affected in releases prior to 1.1.0. Upgrade your dependency to 1.1.0 or later.
What is the CVSS score of CVE-2026-47427?
CVE-2026-47427 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-47427?
CVE-2026-47427 is classified under CWE-476: NULL Pointer Dereference (The product dereferences a pointer that it expects to be valid but is NULL.).
How can I check Go dependencies for CVE-2026-47427?
Run the dependency tree command: 'inspect dependencies for github.com/github/github-mcp-server'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-w4q6-qw23-4rg7",
  "modified" : "2026-07-28T14:35:10Z",
  "published" : "2026-07-28T14:35:10Z",
  "aliases" : [ "CVE-2026-47427" ],
  "summary" : "GitHub MCP Server has Nil Pointer Dereference DoS in completion/complete Handler",
  "details" : "### 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    }",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/github/github-mcp-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/github/github-mcp-server/security/advisories/GHSA-w4q6-qw23-4rg7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/github/github-mcp-server/pull/2502"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/github/github-mcp-server/commit/c88d2ecdd3bb07f7bdd75296e3ee676febf14f58"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/github/github-mcp-server"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/github/github-mcp-server/releases/tag/v1.1.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-476" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-28T14:35:10Z",
    "nvd_published_at" : null
  }
}