Server-side request forgery in Grafana mcp-grafana via the X-Grafana-URL header

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-19516?

CVE-2026-19516 is a vulnerability classified as Server-Side Request Forgery, affecting Grafana MCP Server (affected versions: 0.0.0 – ≤ 1.0.0) and mcp-grafana (affected versions: 0.0.0 – ≤ 1.0.0). This vulnerability is rated Critical, with a CVSS score of 9.1. Current sources do not report this vulnerability as exploited.

Overview

Original source data

A caller-supplied X-Grafana-URL request header controls the destination of mcp-grafana's outbound requests, and the grafana_api_request tool lets the caller also choose the HTTP method, path, and body. Because the destination is not restricted to the configured Grafana instance, a caller can direct requests at internal, loopback, and link-local network services (including metadata endpoints) and read the responses, resulting in server-side request forgery. The fix for CVE-2026-15583 prevented the configured service-account token from being sent to unintended destinations but did not restrict the destinations themselves.

Affected products and scope

Grafana MCP Server and mcp-grafana are affected across the release range listed as affected on this page, up to and including its upper bound; releases after that range contain the fix. Any deployment where the MCP server accepts requests from callers who should not be able to steer its outbound traffic is in scope, including setups where it is exposed to more than a single trusted operator. Applying the earlier fix for the service-account token leak does not remove this exposure. The record does not describe configurations that are explicitly unaffected beyond the version range.

Technical details

This is a server-side request forgery weakness (CWE-918) in mcp-grafana's outbound request handling. The destination of an outbound request is taken from a caller-supplied X-Grafana-URL request header rather than being fixed by configuration, and the grafana_api_request tool additionally lets the caller set the HTTP method, path and body of the request. There is no restriction confining requests to the Grafana instance the server was configured to talk to, so the caller effectively controls both the target and the shape of the HTTP request the server emits. The record notes that an earlier fix addressed a related problem: after that fix, the configured service-account token is no longer sent to unintended destinations, but the destinations themselves were left unrestricted. That earlier change closes the credential-leak angle, not this one.

Exploitability

The vulnerability is exploitable over the network against the MCP server, requires low privileges on that server, and needs no user interaction: a caller who can invoke the tools simply supplies the header and tool parameters. Attack complexity is low. No known exploitation in the wild is reported, and no public exploit is recorded. Whether a given deployment is actually exposed depends on who can reach the MCP server and what its host can route to.

Technical impact

An attacker gains the ability to make the MCP server issue HTTP requests to arbitrary hosts it can route to, and to read the responses through the tool. Reachable targets include internal services, loopback-only interfaces and link-local or metadata endpoints. Because the caller also picks the HTTP method, path and body, non-GET requests against internal endpoints are possible, so this is not read-only in principle; the record rates integrity and availability impact as limited rather than absent. The limit is that the attacker works through the MCP server: they see what an HTTP response returns and nothing more, they cannot read arbitrary files or run code directly, and destinations the server has no network route to are out of reach.

Business impact

The MCP server becomes a proxy into whatever network it can reach. An attacker who can call it does not need access to your internal network: the server makes the connections for them, from a host that is usually trusted and often sits inside the perimeter. What that exposes depends on what is reachable from that host. Internal HTTP APIs, admin interfaces bound only to localhost, and cloud instance metadata endpoints are the obvious targets, and metadata endpoints in particular can return credentials for the cloud account the workload runs under. That turns a request-forgery bug into data exposure and, in the cloud case, into a path toward wider access. The people who should care are the teams running the MCP server, the platform team that owns its network position, and anyone accountable for the data reachable from that host. Because the caller only needs low privileges on the MCP server, the pool of potential attackers includes ordinary users of the assistant it serves, not just administrators.

Remediation

Apply the vendor's fixed release. That is the only action the record supports as a complete fix. Until it is deployed, treat the MCP server as a trusted network position that untrusted callers can borrow: restrict who can reach it, and restrict what its host is allowed to reach outbound, so that loopback, link-local and metadata endpoints are not simply available to it. Egress filtering is a compensating control, not a repair, and it needs to cover the host's actual routes rather than a list of known-bad addresses. Review who currently holds access to the MCP server's tools, since low-privileged callers are enough to exploit this.

Detection

Look at outbound HTTP traffic from the host running mcp-grafana: requests to loopback addresses, link-local ranges, cloud metadata addresses, and internal hosts the MCP server has no business talking to. On the application side, log tool invocations and check for X-Grafana-URL values that differ from the configured Grafana endpoint, and for grafana_api_request calls with unusual methods, paths or bodies, especially any that target addresses rather than the Grafana API. Correlate the calling identity with those requests so you can tell which user drove which destination. A sudden appearance of destinations that never appear in normal operation is the signal worth alerting on.

Sources (6)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.