/

CVE-2026-63087

Severity:

CRITICAL RISK

(9.8)

Missing Authentication (CWE-306) in Grafana OnCall APIs

CVE-2026-63087

Awaiting Analysis

Vulnerability type

Category:

Missing Authentication

CWE:

CWE-306

Impact:

Authentication Bypass and Privilege Escalation

Severity:

CRITICAL RISK

(9.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Grafana OnCall through version 1.16.11 exposes an internal plugin installation API without proper authentication, allowing remote attackers to obtain a valid PluginAuthToken using hardcoded identifiers from public source code.

With this token, an attacker can access internal APIs, bootstrap arbitrary admin users, revoke legitimate plugin tokens, and redirect OnCall-to-Grafana API traffic to attacker-controlled infrastructure.

Affected context

The vulnerability arises in Grafana OnCall deployments that expose the plugin's internal HTTP endpoints over a reachable network interface.

It particularly affects instances where:

  • The internal plugin install endpoint is accessible without upstream authentication or strong network isolation
  • Default or hardcoded stack_id and org_id values from the public codebase remain valid in production
  • Internal PluginAuthToken issuance is trusted implicitly by downstream OnCall and Grafana components

In these environments, the unauthenticated endpoint effectively provides a backdoor into authenticated API operations.

Exploit preconditions

  • Attack surface: Network-accessible Grafana OnCall plugin endpoints (typically HTTP/HTTPS).
  • Required access: Remote network connectivity to the OnCall service; no prior authentication required.
  • Trigger point: An HTTP POST request to the internal plugin install endpoint using known default stack_id and org_id values.
  • Why exploitation is possible: The endpoint performs privileged token issuance and configuration updates without enforcing authentication or authorization checks, treating any caller as trusted when they supply the expected static identifiers.

Why this happens

The core issue maps to CWE-306: Missing Authentication for Critical Function, where a sensitive operation is exposed without verifying the caller's identity.

In this case, the internal plugin install endpoint is designed to:

  • Issue a PluginAuthToken that is accepted by internal APIs as proof of legitimacy
  • Perform privileged bootstrap logic, including user-context manipulation and configuration changes

Because this endpoint:

  • Does not enforce authentication
  • Relies on hardcoded, publicly known stack_id and org_id values as implicit trust anchors

any remote party with network access can perform actions intended only for a trusted, authenticated plugin bootstrap process.

Architecturally, treating an internal bootstrap path as inherently trusted, while still exposing it over a general network interface, creates an authentication gap that attackers can directly exploit.

Potential impact

  • Remote attackers can obtain a valid PluginAuthToken and impersonate the legitimate OnCall plugin.
  • Attackers may authenticate against internal OnCall APIs and perform actions intended for trusted components.
  • Creation of arbitrary admin-level users via the user-context header bootstrap path, leading to full administrative control.
  • Revocation of the legitimate plugin's token, potentially causing denial of service for legitimate integrations.
  • Modification of organization-level settings such as grafana_url and api_token, enabling redirection of OnCall-to-Grafana API calls to attacker-controlled hosts.
  • Exposure or manipulation of alerting workflows, escalation policies, and incident data handled by Grafana OnCall.
  • Use of the compromised OnCall instance as a pivot point for broader compromise of connected Grafana environments and downstream systems.

General mitigation guidance

Effective mitigation centers on enforcing strong authentication and minimizing implicit trust in internal control paths:

  • Require explicit authentication and authorization checks on all endpoints that issue tokens, create users, or modify organization-level configuration, even if they are considered "internal" or "bootstrap" paths.
  • Replace hardcoded, static identifiers (such as stack_id and org_id defaults) with dynamically generated, deployment-specific values that are not guessable or publicly documented.
  • Restrict which identities can obtain PluginAuthTokens, tying token issuance to authenticated principals and clearly scoped roles.
  • Apply least-privilege principles to plugin tokens so that a plugin-specific credential cannot arbitrarily create admin users or rewrite critical configuration without additional checks.
  • Use defense-in-depth network controls (e.g., binding internal endpoints to loopback interfaces, service meshes, or private subnets) so that sensitive plugin APIs are not reachable from untrusted networks.
  • Introduce explicit bootstrap phases that are one-time, time-limited, and disabled automatically after initialization, instead of leaving powerful bootstrap endpoints active indefinitely.

How teams detect issues like this

Detection efforts can focus on both code-level indicators and runtime behaviors:

  • Static analysis and code review:
  • Search for routes or controllers related to "install", "bootstrap", or "internal" that lack authentication middleware or explicit permission checks.
  • Flag endpoints that:
  • Issue tokens or session credentials
  • Accept configuration changes for organization-wide settings
  • Create or elevate user accounts

without verifying the caller's identity.

  • Identify uses of hardcoded IDs or secrets (stack_id, org_id) used as implicit authentication gates.
  • Configuration and policy enforcement:
  • Enforce policies requiring authentication/authorization annotations on all routes that perform security-sensitive operations.
  • Integrate automated review tools or CI checks that fail builds when new unauthenticated endpoints are added under privileged route groups.
  • Runtime monitoring and logs:
  • Monitor for POST requests to internal plugin install endpoints originating from unexpected IP addresses or outside normal deployment workflows.
  • Alert on issuance of new PluginAuthTokens outside of known deployment and upgrade windows.
  • Track creation of new admin users and changes to grafana_url or api_token, correlating them with the source endpoints and authentication state.

Automated code review or security scanning tools can be configured to look for missing authentication patterns and misconfigured access controls as part of regular development pipelines.

Sources

SourceLink
github.comgithub.com/geo-chen/oss/blob/main/oncall.md
vulncheck.comvulncheck.com/advisories/grafana-oncall-unauthenticated-token-hijack-via-plugin-install-endpoint

Frequently asked

questions

Yes, if the Grafana OnCall plugin endpoints are exposed over an internet-reachable interface and not protected by additional network or proxy-layer authentication, a remote attacker can exploit the bug without prior access.

No. The flaw exists because the internal plugin install endpoint performs privileged operations without verifying the caller's identity. Attackers only need network access and knowledge of the hardcoded identifier values from the public codebase.

The safest pattern is to require strong authentication and authorization for all endpoints that issue tokens, create users, or modify critical configuration, and to avoid using static, hardcoded identifiers as trust mechanisms. Any bootstrap or installation flow should be both authenticated and scoped, with one-time or time-limited capabilities.

Prevention typically involves designing APIs under a "deny by default" model: treat every network-exposed endpoint as untrusted, require explicit auth for sensitive operations, and review code for hidden bootstrap or "internal" paths that bypass common security middleware. Combining secure defaults, regular security-focused code review, and automated checks for missing authentication on privileged routes helps prevent recurrence.

Find out what's already
exploitable in your codebase.