mcp-onboarding OAuth server skips redirect_uri validation for unregistered client_id in navikt/copilot
The mcp-onboarding app in navikt/copilot runs its own OAuth 2.0/2.1 authorization server that fronts a GitHub OAuth App for navikt org members and issues bearer tokens for its /mcp endpoint. GET /oauth/authorize validated redirect_uri only when the request's client_id already existed in the in-memory client store. For any client_id the store had never seen, and no registration was required to pick one, the check was skipped entirely, and the attacker's redirect_uri was carried unchanged through the session, the authorization code, and the post-consent redirect. An attacker who got a navikt org member to open one link obtained that member's bearer token for this service, granting the victim's identity and their read:user read:org user:email view of GitHub through the MCP tools, with persistence for up to 30 days through a refresh token that required no client authentication. The service is reachable only on Nav's internal network and has no external consumers, which holds the rating to medium. The maintainers fixed this across PRs #632, #634, #635, #636 and #637: unknown client_ids are refused, redirect_uri is restricted to loopback for public clients, and refresh tokens are bound to the issuing client_id. The patched version recorded on the advisory is the Go pseudo-version 0.0.0-20260903100446-3a3e2d66c3b8. No CVE is assigned for GHSA-7hwf-488h-59x8, and the advisory states no CVE was requested.
- Affected artifact
- navikt/copilot — apps/mcp-onboarding OAuth authorization server (oauth.go handleAuthorize, handleRegister, token endpoint)mcp server
- Affected versions
- github.com/navikt/copilot/mcp-onboarding ≥ 0 to < 0.0.0-20260903100446-3a3e2d66c3b8
- Fixed in
- 0.0.0-20260903100446-3a3e2d66c3b8
- Last verified
- 2026-12-03
- Upstream aliases
- GHSA-7hwf-488h-59x8
Severity
CVSS 4.0 score 5.1 (Medium), scored by HOL.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
What this means
GHSA-7hwf-488h-59x8: the mcp-onboarding OAuth server in navikt/copilot skipped redirect_uri validation for any unregistered client_id, so one clicked link could hand a navikt member's service token to an attacker. The fix is merged and deployed; the patched pseudo-version is 0.0.0-20260903100446-3a3e2d66c3b8. The service is internal-only, with no consumer action.
What to do
Nav operates the only deployment and the fix is already merged and deployed, so there is no consumer action. Operators of similar MCP OAuth servers should refuse unknown client_ids with invalid_client, validate redirect_uri on every authorize request, restrict public-client redirects to loopback, and bind refresh tokens to the issuing client_id.
Evidence
Precondition. A navikt org member on Nav's internal network opens the attacker's authorize link while authenticated to GitHub. The attacker needs no credentials of their own, and realising the token's value requires internal network position.
Source proof. Per the advisory, the attack path is a single authorize request with any unregistered client_id and an attacker-chosen redirect_uri: after the victim's GitHub sign-in and org check, the server redirected to the attacker's URI with the authorization code, which the token endpoint redeemed with no client authentication, no required PKCE and a wildcard CORS header. The maintainers verified the fix against the running service: the same request now returns 400. HOL did not run the server; this rests on the advisory.
Version determination. Determined by range — The advisory states github.com/navikt/copilot/mcp-onboarding below the Sep 3, 2026 pseudo-version fix is affected, patched in 0.0.0-20260903100446-3a3e2d66c3b8.
Disclosure
Disclosure state: independent public · Publisher: navikt/copilot
Naming decision: named. Vendor named as drafted. Finding already public under GHSA-7hwf-488h-59x8 with fix merged and deployed; naming call sits with this job under Nov 24-25 2026 rules.
Vendor response: fixed — Fix merged and deployed across PRs #632, #634, #635, #636 and #637.
2026-09-03 · vendor action
Maintainers published advisory GHSA-7hwf-488h-59x8 with the fix merged and deployed.
2026-12-03 · guard update
Status moved from draft to triaged: Transition to triaged: record is in scope, sources are primary, finding already public and fixed upstream in the Sep 3 2026 pseudo-version fix.
2026-12-03 · guard update
Status moved from triaged to evidence_verified: Transition to evidence_verified: record is in scope, sources are primary, finding already public and fixed upstream in the Sep 3 2026 pseudo-version fix.
2026-12-03 · disclosure
Status moved from evidence_verified to public: Transition to public: record is in scope, sources are primary, finding already public and fixed upstream in the Sep 3 2026 pseudo-version fix.
Affected artifact references
Cite this record
[HOL-VULN-2026-0014] mcp-onboarding OAuth server skips redirect_uri validation for unregistered client_id in navikt/copilot — HOL Agent Vulnerability Ledger, HOL (hol.org), 2026. https://hol.org/guard/security/vulnerabilities/hol-vuln-2026-0014
Canonical URL: https://hol.org/guard/security/vulnerabilities/hol-vuln-2026-0014
Found an error in this record, or want to appeal it? Report an issue or appeal.
Appeal or correct this record
Maintainers and affected parties can submit evidence, dispute the record, or request a correction through the disclosure page. A dispute marks the record visibly disputed — it never silently disappears.