{"id":"CVE-2026-44428","aliases":["CVE-2026-44428","GHSA-95c3-6vvw-4mrq","GO-2026-5273"],"related":[],"kind":"vulnerability","state":"published","title":"MCP Registry: GitHub OIDC tokens replayable across registry deployments due to shared audience","summary":"The MCP Registry provides MCP clients with a list of MCP servers, like an app store for MCP servers. Prior to 1.7.6, the client-side and server-side GitHub OIDC flow is bound only to a global audience string, not to the specific registry instance being targeted. On the client side, the publisher always appends audience=mcp-registry when requesting the GitHub Actions ID token, regardless of the selected --registry URL. On the server side, the exchange endpoint validates only that same fixed audience and then derives publish permissions directly from repository_owner. As a result, a token legitimately obtained while interacting with one registry deployment remains acceptable to any other deployment that shares the same code and audience string. This vulnerability is fixed in 1.7.6.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The MCP Registry provides MCP clients with a list of MCP servers, like an app store for MCP servers. Prior to 1.7.6, the client-side and server-side GitHub OIDC flow is bound only to a global audience string, not to the specific registry instance being targeted. On the client side, the publisher always appends audience=mcp-registry when requesting the GitHub Actions ID token, regardless of the selected --registry URL. On the server side, the exchange endpoint validates only that same fixed audience and then derives publish permissions directly from repository_owner. As a result, a token legitimately obtained while interacting with one registry deployment remains acceptable to any other deployment that shares the same code and audience string. This vulnerability is fixed in 1.7.6.","source":"cvelist"},{"lang":"en","text":"# [SECURITY] registry_001 Vulnerability Report\n\nWhile analyzing the code logic, an area that may lead to unintended behavior under specific conditions was discovered. \n\n## Overview\n- Verified Version: `c5c4b9e8890dd5754bee889b2f1417f4fe3b5ce5`\n- Vulnerability Type: Authentication bypass via cross-registry OIDC token replay\n- Affected Location: `cmd/publisher/commands/login.go:67-105,130-135,199-224`; `cmd/publisher/auth/github-oidc.go:24-38,58-75,108-165`; `internal/api/handlers/v0/auth/github_oidc.go:75-135,229-277,280-296`\n- Trigger Scenario: a workflow invokes `mcp-publisher login github-oidc --registry <other-registry>` (or equivalent publish flow) and the publisher still requests a GitHub Actions ID token with the shared audience `mcp-registry`; any other registry deployment running this code can replay that token to its own `/v0/auth/github-oidc` endpoint and mint a publish-capable registry JWT for the same GitHub owner namespace.\n\n## Root Cause\nThe client-side and server-side GitHub OIDC flow is bound only to a global audience string, not to the specific registry instance being targeted. On the client side, the publisher always appends `audience=mcp-registry` when requesting the GitHub Actions ID token, regardless of the selected `--registry` URL. On the server side, the exchange endpoint validates only that same fixed audience and then derives publish permissions directly from `repository_owner`. As a result, a token legitimately obtained while interacting with one registry deployment remains acceptable to any other deployment that shares the same code and audience string.\n\n## Source-to-Sink Chain\n1. Source\n   `cmd/publisher/commands/login.go:67-105,130-135,199-224` parses the user-controlled `--registry` flag into `flags.RegistryURL`, creates a `GitHubOIDCProvider`, and calls `authProvider.GetToken(ctx)` for the chosen authentication method.\n2. Propagation\n   `cmd/publisher/auth/github-oidc.go:24-38` obtains an OIDC token and immediately exchanges it against the selected registry URL.\n   `cmd/publisher/auth/github-oidc.go:58-75` builds `exchangeURL := o.registryURL + \"/v0/auth/github-oidc\"` and posts the GitHub token to whichever registry instance was selected.\n   `cmd/publisher/auth/github-oidc.go:108-165` constructs `fullURL := requestURL + \"&audience=mcp-registry\"` and therefore requests the same audience for every registry deployment.\n3. Sink\n   `internal/api/handlers/v0/auth/github_oidc.go:75-135` validates only the shared audience value passed into `ValidateToken`.\n   `internal/api/handlers/v0/auth/github_oidc.go:254-277` calls `h.validator.ValidateToken(ctx, oidcToken, \"mcp-registry\")` and, on success, signs a new registry JWT.\n   `internal/api/handlers/v0/auth/github_oidc.go:280-296` converts `claims.RepositoryOwner` into the publish permission pattern `io.github.<owner>/*`, which is then embedded into the new registry JWT.\n\n## Exploitation Preconditions\n1. The victim uses the GitHub Actions OIDC publishing path.\n2. The victim workflow targets another registry deployment first, such as staging, self-hosted infrastructure, or an attacker-controlled registry URL.\n3. The receiving registry deployment can observe the posted OIDC token and replay it before expiry to another registry deployment running the same shared audience configuration.\n\n## Risk\nThis breaks deployment isolation between registry instances. A token issued for one registry interaction can be replayed across trust boundaries, allowing one deployment to impersonate the same GitHub owner identity on another deployment.\n\n## Impact\nAn attacker-controlled or compromised registry deployment can mint a valid registry JWT on another deployment and inherit publish permissions for the victim GitHub owner namespace. In practical terms, this enables unauthorized publication or update actions for names such as `io.github.<owner>/*` on the victim registry instance.\n\n## Remediation\n1. Replace the shared audience string with a registry-specific audience, such as a deployment-specific client ID or origin-derived identifier.\n2. Ensure the publisher requests the audience that matches the exact registry instance it is targeting, and ensure the server validates that same instance-specific value.\n3. Consider binding the exchange to additional deployment-specific claims so that a token captured by one registry cannot be replayed on another.\n4. Add regression tests that cover cross-deployment replay attempts between different registry URLs.","format":"markdown","source":"ghsa"},{"lang":"en","text":"MCP Registry's GitHub OIDC tokens are replayable across registry deployments due to shared audience in github.com/modelcontextprotocol/registry","format":"markdown","source":"go"},{"lang":"es","text":"El Registro MCP proporciona a los clientes MCP una lista de servidores MCP, como una tienda de aplicaciones para servidores MCP. Antes de la versión 1.7.6, el flujo OIDC de GitHub del lado del cliente y del lado del servidor está vinculado únicamente a una cadena de audiencia global, no a la instancia de registro específica a la que se apunta. Del lado del cliente, el publicador siempre añade audience=mcp-registry al solicitar el token de ID de GitHub Actions, independientemente de la URL --registry seleccionada. Del lado del servidor, el punto final de intercambio valida únicamente esa misma audiencia fija y luego deriva los permisos de publicación directamente de repository_owner. Como resultado, un token obtenido legítimamente mientras se interactúa con una implementación de registro sigue siendo aceptable para cualquier otra implementación que comparta el mismo código y cadena de audiencia. Esta vulnerabilidad está corregida en la versión 1.7.6.","source":"nvd"}],"published":"2026-05-08T17:06:22.000Z","modified":"2026-10-26T14:10:00.130Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","score":2.1,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","score":2.1,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","score":4.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"< 1.7.6","status":"affected"}],"vendor":"modelcontextprotocol","product":"registry","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.6"}],"ecosystem":"Go","package":"github.com/modelcontextprotocol/registry","purl":"pkg:golang/github.com/modelcontextprotocol/registry","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.6"}],"ecosystem":"Go","package":"github.com/modelcontextprotocol/registry","purl":"pkg:golang/github.com/modelcontextprotocol/registry","source":"go"},{"ranges":[{"status":"affected","fixed":"1.7.6"}],"vendor":"lfprojects","product":"mcp_registry","cpe":"cpe:2.3:a:lfprojects:mcp_registry:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/modelcontextprotocol/registry/security/advisories/GHSA-95c3-6vvw-4mrq","tags":["advisory","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44428","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/modelcontextprotocol/registry/pull/1229","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/modelcontextprotocol/registry/commit/3f89fc2b1fb34fd49f3c0e1b39e964a5c67b613f","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/modelcontextprotocol/registry","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/modelcontextprotocol/registry/releases/tag/v1.7.6","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-15T14:22:02.074Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44428","url":"https://www.cve.org/CVERecord?id=CVE-2026-44428","licence":"CVE Terms of Use","modified":"2026-05-15T14:22:18.973Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-95c3-6vvw-4mrq","url":"https://github.com/advisories/GHSA-95c3-6vvw-4mrq","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:11.578Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5273","url":"https://pkg.go.dev/vuln/GO-2026-5273","licence":"CC-BY-4.0","modified":"2026-06-25T19:45:24.950Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44428","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44428","licence":"Public domain","modified":"2026-10-26T14:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:21.793Z","epss":{"score":0.00219,"percentile":0.13166,"date":"2026-12-01T12:00:22.000Z"}}