Skip to content
SSRF Write-up Intermediate

Grafana Security Alert | CVE-2026–15583 & CVE-2026–21723 Explained

The Grafana MCP Server had an SSRF vulnerability via the X-Grafana-URL header, allowing an unauthenticated attacker to make the server request unintended destinations and potentially expose a configured service-account token. Separately, the Alertmanager templates test endpoint lacked memory limits, so repeated execution could exhaust memory and crash the service.

pentesterclubpvtltd Follow

Published on medium.com

Hacking

Pentester Club, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

Context

Grafana is widely used for observability, dashboards, monitoring, alerting and infrastructure visibility. Because Grafana deployments can sit close to sensitive internal systems and cloud infrastructure, vulnerabilities affecting the platform deserve careful attention. This article looks at two vulnerabilities disclosed in July 2026 that have very different root causes and impacts, which makes them a useful case study in modern application security:

  • CVE-2026-15583: a high-severity Grafana MCP Server vulnerability involving server-side request forgery and exposure of a configured Grafana service-account token.
  • CVE-2026-21723: a medium-severity denial-of-service vulnerability involving the Alertmanager templates test endpoint and uncontrolled resource consumption.
From the original on medium.com

Setup

The two issues affect different components. CVE-2026-15583 affects Grafana MCP Server, and the NVD record lists affected versions through 0.17.1, with the issue reported by Grafana Labs on July 15, 2026. CVE-2026-21723 affects the Grafana Alertmanager templates test endpoint. No specific deployment, account or tooling setup is described beyond that.

Finding it

CVE-2026-15583: SSRF in the MCP Server

Grafana describes the issue as a server-side request forgery (SSRF) vulnerability involving the X-Grafana-URL header. The vulnerability can allow an unauthenticated remote attacker to cause the MCP server to make requests to unintended destinations.

According to the NVD record, the issue can also result in exposure of the Grafana service-account token configured in the server environment and can potentially reach internal services, including cloud metadata endpoints. Grafana assigned the vulnerability a CVSS 3.1 score of 8.6 (High).

CVE-2026-21723: Alertmanager templates

The second vulnerability is very different. The vulnerability involves template execution without adequate memory limits. Repeated execution can consume excessive memory, potentially causing the Grafana service to run out of memory and crash. Grafana assigned this vulnerability a CVSS 3.1 score of 5.3 (Medium).

Exploitation

What SSRF means here

Server-Side Request Forgery occurs when an attacker can influence a server into making a network request on their behalf. The important distinction is between a normal request, where a client reaches the application and the application reaches the intended server, and SSRF, where the application may effectively become a network proxy:

Text
Attacker   │   ▼Vulnerable Application   │   ├──► Internal Service   │   ├──► Cloud Metadata Service   │   └──► Other Restricted Resource

This becomes particularly dangerous when the vulnerable application has network access that ordinary external users do not have.

Why the Grafana MCP issue is serious

The risk is not simply that an attacker can make an unexpected HTTP request. The more important concern is the application's security context. If an application has access to internal APIs, cloud services, service credentials, management interfaces or private network resources, then SSRF can potentially turn that application's network position into an unintended access path.

In the case of CVE-2026-15583, the vulnerability can expose a Grafana service-account token configured through the server environment. That makes credential management and network segmentation particularly important.

Cloud metadata risk

Cloud environments frequently provide metadata services that expose information to workloads running inside the cloud. This is why SSRF vulnerabilities should always be evaluated in the context of the application's hosting environment. A vulnerable service running on an isolated development machine presents a different risk from the same service running with privileged cloud credentials. The security question therefore becomes: what can the vulnerable application reach, and what credentials does it possess?

Resource exhaustion in the Alertmanager endpoint

CVE-2026-21723 falls into the broader category of uncontrolled resource consumption, identified as CWE-400 in the NVD record. The basic concept is straightforward:

Text
Request   │   ▼Expensive Operation   │   ▼Excessive Resource Consumption   │   ▼Memory Pressure   │   ▼Service Failure

The result is primarily an availability problem. An important lesson is that an attacker does not necessarily need administrator privileges for a vulnerability to have meaningful impact. The NVD states that the affected endpoint requires very low privileges, and the issue can also be exploitable when anonymous access is enabled.

Root cause

For CVE-2026-15583, Grafana describes the issue as an SSRF vulnerability involving the X-Grafana-URL header. The report does not describe the validation logic that was missing or bypassed. The impact is amplified because the server environment holds a Grafana service-account token and the server can reach internal services and cloud metadata endpoints.

For CVE-2026-21723, the Alertmanager templates test endpoint executes templates without adequate memory limits. Repeated execution can consume excessive memory, potentially causing the service to run out of memory and crash. The endpoint requires very low privileges and can also be exploitable when anonymous access is enabled.

Impact

CVE-2026-15583 (High, 8.6) can allow an unauthenticated remote attacker to make the MCP server send requests to unintended destinations, potentially reaching internal services and cloud metadata endpoints, and can expose the configured Grafana service-account token.

CVE-2026-21723 (Medium, 5.3) can cause excessive memory consumption and potentially crash the Grafana service, primarily an availability impact. It is exploitable with very low privileges and, per the NVD, when anonymous access is enabled.

A vulnerability's real impact depends on the privileges, network access, credentials and trust relationships surrounding the vulnerable component. An SSRF issue becomes much more serious when the affected application has privileged network access, and a resource-consumption vulnerability becomes more disruptive when the endpoint is exposed publicly or accessible to unauthenticated users. Security teams should evaluate vulnerabilities in their actual deployment context, not simply by CVSS score.

Fix

For CVE-2026-15583, follow Grafana's official security advisory and upgrade according to the fixed-version guidance rather than relying on unofficial patches. Grafana's security-advisory index lists CVE-2026-15583 as a High-severity issue affecting Grafana MCP. Security teams should first determine whether they operate Grafana MCP Server versions affected by the advisory (through 0.17.1).

  1. Identify MCP Server deployments: inventory Grafana MCP Server installations, versions, internet-facing endpoints, internal deployments and authentication configuration.
  2. Upgrade to a fixed release using Grafana's official advisory.
  3. Review service credentials: if an affected deployment was exposed, investigate credentials configured in its environment, rotate affected service-account tokens, review token permissions, remove unnecessary privileges and check authentication logs for unusual activity.
  4. Restrict outbound network access with network segmentation, egress filtering, cloud firewall policies, workload identity controls and least-privilege networking.

For CVE-2026-21723, apply the vendor fix and review anonymous access, public endpoints, low-privilege accounts, API authorization and resource limits.

A responsible vulnerability-management workflow looks like this:

Text
Asset Inventory      │      ▼Identify Grafana Versions      │      ▼Check Affected Components      │      ▼Determine Exposure      │      ▼Apply Vendor Fix      │      ▼Rotate Potentially Exposed Credentials      │      ▼Review Logs      │      ▼Verify Remediation

Defence in depth should include least privilege for service accounts, network segmentation so monitoring systems do not automatically have unrestricted access to sensitive internal networks, egress controls, strong authentication (avoid unnecessary anonymous access to sensitive monitoring infrastructure), secret management with rotation when exposure is suspected, and continuous monitoring of application, authentication and infrastructure logs.

For developers: never trust client-controlled routing, validate application-controlled destinations against explicit policies, apply resource limits to templates, parsing, queries and complex processing, treat internal services as sensitive, and minimise credential exposure.

Variants to test

  • A positive result is a response or side effect that originates from the server's network position rather than yours.

Stay patched, stay monitored, and understand the security boundaries around every monitoring system you deploy.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 15 min read.

What happened, in plain words

Grafana is a piece of software that many companies use to watch their own computer systems. It draws dashboards (charts and graphs on a screen) that show whether servers are healthy, how much traffic a website is getting, and whether something has gone wrong. It also sends alerts, for example an email or a chat message when a server stops responding. Because Grafana often sits right next to the sensitive parts of a company's network, a weakness in Grafana is worth taking seriously.

In July 2026 two weaknesses in Grafana-related software were made public. They are tracked by two identifiers, CVE-2026-15583 and CVE-2026-21723. A CVE is simply a public catalogue number for a known security flaw, so that everyone in the world can talk about the same problem without confusion.

  • CVE-2026-15583 is a high-severity problem in the Grafana MCP Server. It lets an attacker who has not logged in at all make that server send requests to places it should not reach, and it can expose a secret credential (a service-account token) that the server keeps in its environment.
  • CVE-2026-21723 is a medium-severity problem in the Alertmanager templates test endpoint. It lets someone make Grafana use up so much memory that it crashes, which is a denial-of-service problem: the service becomes unavailable to everyone.

The two flaws have completely different causes and different effects, which is why they make a good teaching example.

From the original on medium.com

The two pieces of software involved

Before going further, it helps to know what the affected parts actually do.

Grafana MCP Server. The report does not explain what MCP stands for or what the server does beyond the vulnerability itself.

Alertmanager templates test endpoint. The report only says this endpoint executes templates without adequate memory limits.

Service-account token. A token is a long random string that works like a password for a program rather than a person. A service account is an account that belongs to software, not to a human. The token is the key that software shows to prove who it is. If someone steals it, they can act as that software.

Setup: what you would need in front of you

The two issues affect different components, so there is no single lab setup that covers both.

  • CVE-2026-15583 affects Grafana MCP Server. The NVD record (NVD is the US National Vulnerability Database, a public register of known flaws) lists affected versions through 0.17.1, and the issue was reported by Grafana Labs on July 15, 2026.
  • CVE-2026-21723 affects the Grafana Alertmanager templates test endpoint.

No specific deployment, account or tooling setup is described beyond that. In other words, you do not need to install anything to follow the reasoning below; the important part is understanding what each flaw allows.

Finding it

CVE-2026-15583: SSRF in the MCP Server

Grafana describes the issue as a server-side request forgery (SSRF) vulnerability involving the X-Grafana-URL header.

Two terms need unpacking here.

A header is a small line of extra information that travels with every web request, alongside the address you are asking for. When your browser asks a website for a page, it also sends headers saying things like which browser it is and what language it prefers. Headers are just labelled text: a name, a colon, and a value. X-Grafana-URL is a custom header whose name suggests it carries a web address (a URL) for Grafana. The X- prefix is a common convention for headers that are not part of the official web standard.

SSRF is explained in detail in the next section. For now, the short version is: the attacker gets to choose where the server sends its next request.

The vulnerability can allow an unauthenticated remote attacker, meaning someone on the internet who has not logged in, to cause the MCP server to make requests to unintended destinations. According to the NVD record, the issue can also result in exposure of the Grafana service-account token configured in the server environment, and can potentially reach internal services, including cloud metadata endpoints. Grafana assigned the vulnerability a CVSS 3.1 score of 8.6 (High).

CVSS is a scoring system for the severity of a security flaw. It produces a number, here 8.6, and a label, here High. The number is a rough guide to how bad the flaw is, not a measurement of what it will do in your particular network.

CVE-2026-21723: Alertmanager templates

The second vulnerability is very different. The vulnerability involves template execution without adequate memory limits. Repeated execution can consume excessive memory, potentially causing the Grafana service to run out of memory and crash. Grafana assigned this vulnerability a CVSS 3.1 score of 5.3 (Medium).

In everyday terms: the test endpoint will happily run a template that needs a lot of memory, and it will do so again and again, with no ceiling on how much memory it may take. Eventually the machine has nothing left to give and the service falls over. Think of a photocopier with no page limit that someone keeps feeding; the tray empties and nobody else can print.

Exploitation

What SSRF means here

Server-Side Request Forgery occurs when an attacker can influence a server into making a network request on their behalf. The important distinction is between a normal request, where a client reaches the application and the application reaches the intended server, and SSRF, where the application may effectively become a network proxy.

A proxy is a middleman: you ask the proxy for something, and the proxy fetches it for you. That is normally a helpful arrangement. In SSRF, the middleman is the victim's own server, and it is being pointed at things the attacker could never reach directly.

Text
Attacker   │   ▼Vulnerable Application   │   ├──► Internal Service   │   ├──► Cloud Metadata Service   │   └──► Other Restricted Resource

Reading this diagram from the top:

  1. The attacker sends a request to the vulnerable application. The attacker only ever talks to that one application.
  2. The application, following the attacker's instruction, makes a new request of its own.
  3. That new request can go to an internal service, to a cloud metadata service, or to some other restricted resource. None of these are reachable from the attacker's own computer, but they are reachable from the application's computer.

This becomes particularly dangerous when the vulnerable application has network access that ordinary external users do not have. A useful comparison: a receptionist who will phone any number you name. You cannot walk into the building yourself, but the receptionist can call the finance office and read out whatever they are told.

Why the Grafana MCP issue is serious

The risk is not simply that an attacker can make an unexpected HTTP request. HTTP is the language browsers and servers use to exchange web pages and data; a request is one message in that conversation. The more important concern is the application's security context: everything the application is allowed to do, the network it can see, and the credentials it holds.

If an application has access to internal APIs, cloud services, service credentials, management interfaces or private network resources, then SSRF can potentially turn that application's network position into an unintended access path.

An API (application programming interface) is a way for one program to ask another program for data or actions, without a human clicking anything. Where a website shows you a page, an API hands back raw data. Internal APIs are often not protected as strongly as public ones, on the assumption that only trusted software can reach them.

In the case of CVE-2026-15583, the vulnerability can expose a Grafana service-account token configured through the server environment. The environment here means the set of settings a program is given when it starts, often including passwords and tokens. That makes credential management and network segmentation particularly important.

Network segmentation means dividing a network into separate zones so that being in one zone does not automatically give you access to another. It is the difference between an office where every door is open and one where you need a different key for each floor.

Cloud metadata risk

Cloud environments frequently provide metadata services that expose information to workloads running inside the cloud. A cloud here means rented computing: someone else's data centre runs your machines. A workload is simply a running program or virtual machine in that cloud. The metadata service is a special internal address that a machine can ask about itself, and in some setups it will hand out temporary credentials for the cloud account.

This is why SSRF vulnerabilities should always be evaluated in the context of the application's hosting environment. A vulnerable service running on an isolated development machine presents a different risk from the same service running with privileged cloud credentials. The security question therefore becomes: what can the vulnerable application reach, and what credentials does it possess?

Resource exhaustion in the Alertmanager endpoint

CVE-2026-21723 falls into the broader category of uncontrolled resource consumption, identified as CWE-400 in the NVD record. CWE is a catalogue of weakness types, the way CVE is a catalogue of individual flaws; CWE-400 is the entry for "the software does not properly limit how much of a resource it uses". The basic concept is straightforward:

Text
Request   │   ▼Expensive Operation   │   ▼Excessive Resource Consumption   │   ▼Memory Pressure   │   ▼Service Failure

Line by line:

  1. A request arrives at the endpoint.
  2. The endpoint performs an expensive operation, in this case running a template that needs a lot of memory.
  3. Because there is no adequate limit, the operation consumes more resources than it should.
  4. Memory pressure builds up on the machine.
  5. The service fails, typically by crashing when it runs out of memory.

The result is primarily an availability problem: the service is not stolen or read, it is simply made unusable. An important lesson is that an attacker does not necessarily need administrator privileges for a vulnerability to have meaningful impact. The NVD states that the affected endpoint requires very low privileges, and the issue can also be exploitable when anonymous access is enabled.

Anonymous access means the service lets visitors use certain features without logging in at all. It is convenient for a status page and dangerous for anything that can be made to do heavy work.

Root cause

For CVE-2026-15583, the MCP server accepts a destination from the X-Grafana-URL header and makes requests to it, so a client-controlled value determines where the server connects. The report does not describe the validation logic that was missing or bypassed. The impact is amplified because the server environment holds a Grafana service-account token and the server can reach internal services and cloud metadata endpoints.

For CVE-2026-21723, the Alertmanager templates test endpoint executes templates without adequate memory limits. Repeated execution consumes excessive memory until the service runs out of memory and crashes. The endpoint requires very low privileges and can be reachable with anonymous access enabled.

In plain words: the endpoint had no adequate memory limit, required very low privileges, and could be exploitable when anonymous access was enabled.

Impact

CVE-2026-15583 (High, 8.6) can allow an unauthenticated remote attacker to make the MCP server send requests to unintended destinations, potentially reaching internal services and cloud metadata endpoints, and can expose the configured Grafana service-account token.

CVE-2026-21723 (Medium, 5.3) can cause excessive memory consumption and potentially crash the Grafana service, primarily an availability impact. It is exploitable with very low privileges and, per the NVD, when anonymous access is enabled.

A vulnerability's real impact depends on the privileges, network access, credentials and trust relationships surrounding the vulnerable component. An SSRF issue becomes much more serious when the affected application has privileged network access, and a resource-consumption vulnerability becomes more disruptive when the endpoint is exposed publicly or accessible to unauthenticated users. Security teams should evaluate vulnerabilities in their actual deployment context, not simply by CVSS score.

A comparison may help:

Vulnerability Main issue Severity Main impact
CVE-2026-15583 SSRF, server follows a client-supplied destination High, 8.6 Credential exposure and access to unintended network resources
CVE-2026-21723 Uncontrolled resource consumption Medium, 5.3 Possible crash of the Grafana service

Fix

For CVE-2026-15583, follow Grafana's official security advisory and upgrade according to the fixed-version guidance rather than relying on unofficial patches. An advisory is the vendor's own published notice about a flaw, including which versions are affected and which version fixes it. Grafana's security-advisory index lists CVE-2026-15583 as a High-severity issue affecting Grafana MCP. Security teams should first determine whether they operate Grafana MCP Server versions affected by the advisory, which are versions through 0.17.1.

  1. Identify MCP Server deployments. Make an inventory, meaning a written list, of Grafana MCP Server installations, their versions, which of them are reachable from the internet, which are internal only, and how they are configured to authenticate. You cannot fix what you have not found.
  2. Upgrade to a fixed release using Grafana's official advisory. The point of using the vendor's guidance is that it names the exact version that contains the fix; unofficial patches may be incomplete or may break other things.
  3. Review service credentials. If an affected deployment was exposed, investigate the credentials configured in its environment, rotate affected service-account tokens, review token permissions, remove unnecessary privileges and check authentication logs for unusual activity. To rotate a token means to replace it with a new one and invalidate the old, on the assumption that the old one may already be in someone else's hands. Privileges are the permissions an account has; removing unnecessary ones limits the damage if the account is misused.
  4. Restrict outbound network access with network segmentation, egress filtering, cloud firewall policies, workload identity controls and least-privilege networking. Outbound (or egress) means traffic leaving the machine. If the MCP server is only allowed to talk to the handful of addresses it genuinely needs, an SSRF attempt has nowhere useful to go. Least privilege is the principle of granting the minimum access needed to do the job, and nothing more.

For CVE-2026-21723, apply the vendor fix and review anonymous access, public endpoints, low-privilege accounts, API authorization and resource limits. Resource limits are caps on how much memory, processor time or disk an operation may use before it is stopped.

A responsible vulnerability-management workflow looks like this:

Text
Asset Inventory      │      ▼Identify Grafana Versions      │      ▼Check Affected Components      │      ▼Determine Exposure      │      ▼Apply Vendor Fix      │      ▼Rotate Potentially Exposed Credentials      │      ▼Review Logs      │      ▼Verify Remediation

Step by step:

  1. Asset inventory: list the things you run. An asset is any system you are responsible for.
  2. Identify Grafana versions: find out exactly which version of each Grafana component is installed.
  3. Check affected components: compare those versions against the advisory to see which are affected.
  4. Determine exposure: work out who can actually reach each affected component, from the internet, from inside the company, or not at all.
  5. Apply vendor fix: install the fixed version.
  6. Rotate potentially exposed credentials: replace any token that might have been seen while the flaw was open.
  7. Review logs: look back through records of activity for signs the flaw was used.
  8. Verify remediation: confirm the fix is really in place, rather than assuming it.

Defence in depth means layering several independent protections so that one failure does not mean total compromise. It should include least privilege for service accounts, network segmentation so monitoring systems do not automatically have unrestricted access to sensitive internal networks, egress controls, strong authentication (avoid unnecessary anonymous access to sensitive monitoring infrastructure), secret management with rotation when exposure is suspected, and continuous monitoring of application, authentication and infrastructure logs.

For developers, the same lessons apply in code: never trust client-controlled routing, validate application-controlled destinations against explicit policies, apply resource limits to templates, parsing, queries and complex processing, treat internal services as sensitive, and minimise credential exposure.

Variants to test

These are the kinds of checks a security team can run against their own systems, with permission, to see whether the same patterns appear elsewhere.

  • In other words, if the answer could only have come from inside the network, the server made the request for you.
  • An echo service simply repeats back what it receives, which makes it a convenient way to see what the server is sending.
  • Watch the machine's memory while doing this, so you can tell the difference between a slow response and genuine exhaustion.
  • This tells you whether the endpoint is protected at all.
  • This checks whether permissions are actually enforced or merely assumed.

Stay patched, stay monitored, and understand the security boundaries around every monitoring system you deploy.

Glossary

  • Advisory: the vendor's official published notice about a vulnerability, listing affected versions and the fix.
  • Alertmanager: the part of a monitoring stack that decides who is notified when something goes wrong.
  • Anonymous access: letting visitors use a feature without logging in.
  • API (application programming interface): a way for one program to request data or actions from another program.
  • Asset: any system, service or device an organisation is responsible for.
  • Availability: whether a service is up and usable; an availability problem means the service stops working for everyone.
  • Cloud: computing resources rented from a provider and run in their data centre rather than your own.
  • Cloud metadata service: an internal address inside a cloud that a machine can query about itself, sometimes returning temporary credentials.
  • Credential: anything used to prove identity, such as a password, key or token.
  • CVE: a public catalogue number for a specific known security vulnerability.
  • CVSS: a scoring system that turns a vulnerability's characteristics into a number and a severity label.
  • CWE: a catalogue of types of software weakness, such as CWE-400 for uncontrolled resource consumption.
  • Defence in depth: layering several independent protections so one failure does not lead to full compromise.
  • Denial of service: making a service unavailable to its legitimate users.
  • Egress filtering: controlling and restricting traffic that leaves a network or machine.
  • Endpoint: a specific web address on a server that accepts requests and does something.
  • Environment: the set of settings and values a program is given when it starts, often including secrets.
  • Header: a labelled line of extra information sent alongside a web request or response.
  • HTTP: the language browsers and servers use to exchange requests and responses.
  • Least privilege: granting only the minimum permissions needed to do a job.
  • Log: a record of events that a system keeps, used later to see what happened.
  • MCP (Model Context Protocol): a standard way for AI tools and other software to talk to other services.
  • Memory limit: a cap on how much memory an operation is allowed to use.
  • Network segmentation: splitting a network into zones so access to one does not grant access to another.
  • NVD: the US National Vulnerability Database, a public register of known vulnerabilities.
  • Outbound traffic: traffic leaving a machine or network towards somewhere else.
  • Privilege: a permission an account has, such as the right to read data or change settings.
  • Proxy: a middleman that fetches something on your behalf.
  • Resource exhaustion: using up a limited resource such as memory or processor time until nothing is left.
  • Rotate (a token): replace a credential with a new one and invalidate the old.
  • Service account: an account that belongs to software rather than a person.
  • SSRF (server-side request forgery): tricking a server into making a request to a destination the attacker chooses.
  • Template: a reusable text pattern with blanks that get filled in when it is used.
  • Token: a long random string used like a password by software.
  • Uncontrolled resource consumption: a weakness where software fails to limit how much of a resource an operation may use (CWE-400).
  • URL: a web address.
  • Workload: a running program or virtual machine, especially in a cloud environment.

More by pentesterclubpvtltd

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.