Improper access control in Grafana data source proxy allows Viewer-role users to modify Loki alerting rules

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-9703?

CVE-2026-9703 is a vulnerability classified as Improper Access Control, affecting Grafana Enterprise (affected versions: 8.0.0 – ≤ 11.5.10, 11.6.0 – ≤ 11.6.16, and other affected versions) and Grafana OSS (affected versions: 12.3.0 – ≤ 12.3.8, 12.4.0 – ≤ 12.4.5, and other affected versions). This vulnerability is rated High, with a CVSS score of 7.1. Current sources do not report this vulnerability as exploited.

Overview

Original source data

Grafana's data source proxy did not apply role-based access control to write requests forwarded to Loki data sources. A user holding only the Viewer role on an affected Grafana instance could send POST, PUT and DELETE requests through the proxy to the Loki rules API (/loki/api/v1/rules), allowing them to create, modify and delete Loki alerting rules. Because those rules are stored by Loki rather than by Grafana, the change took effect for every user of that Loki data source, not only for the Viewer who made the request. Exploitation requires an authenticated Viewer account on the Grafana instance and a configured Loki data source; no other privileges are needed. Both Grafana OSS and Grafana Enterprise are affected. The defect is in Grafana's data source proxy; Loki itself is not vulnerable and does not need to be patched.

Affected products and scope

Both Grafana OSS and Grafana Enterprise are affected across multiple release branches. Instances that do not have a Loki data source configured are not exposed to this vulnerability, since the proxy has no Loki endpoint to forward requests to. Loki itself is not vulnerable and does not require a patch.

Technical details

The weakness is improper access control (CWE-284). Grafana's data source proxy accepts HTTP requests from authenticated Grafana users and forwards them to the configured data source. For Loki data sources, the proxy did not check whether the calling user had permission to perform write operations before forwarding POST, PUT, or DELETE requests to the Loki rules API endpoint (/loki/api/v1/rules). The proxy applied no role check on these write methods, so any authenticated user, regardless of role, could issue them. The Loki server then accepted the requests as legitimate because it trusted the incoming connection.

Exploitability

The attack vector is network-based. An attacker needs an authenticated account with the Viewer role on the target Grafana instance and a Loki data source must be configured on that instance. No user interaction is required, and no privilege escalation is needed beyond the Viewer role. No public exploit has been reported, and there is no indication of known exploitation in the wild at the time of publication. A patch is available from the vendor.

Technical impact

An attacker gains the ability to create, modify, or delete Loki alerting rules. They cannot read Loki data through this vector (there is no confidentiality impact), and they cannot directly affect Loki's availability in a severe way, though deleting all alerting rules would remove an operational safety net. The integrity impact is high: the alerting configuration for the affected Loki data source can be arbitrarily altered by any low-privilege user.

Business impact

Any organisation that runs Grafana with a Loki data source configured and grants the Viewer role to users should treat this as a priority. A Viewer is typically given to analysts, interns, or external parties who need read-only dashboard access. If one of those accounts is compromised, or if a malicious insider holds it, an attacker can silently rewrite the alerting rules for that Loki instance. This means they can disable existing alerts (masking an ongoing incident), add false alerts (causing operational noise or panic), or delete rules entirely. The blast radius extends to every team that relies on those alerts for monitoring, not just the individual user. Organisations in regulated environments where alerting integrity is a compliance requirement should also factor in the obligation to demonstrate that monitoring controls were not tampered with.

Remediation

Apply the vendor's patch. Grafana has published a fix for all affected branches. If immediate patching is not possible, consider whether any Loki data sources can be temporarily removed or restricted from the affected Grafana instance. Removing the Loki data source configuration eliminates the attack surface entirely.

Detection

Review Loki server logs for POST, PUT, and DELETE requests to the rules API endpoint (/loki/api/v1/rules). Correlate those requests with Grafana access logs to identify the user account and role that originated them. Look for patterns where a Viewer-role account issued write requests to Loki. Also check the current state of Loki alerting rules against a known-good baseline to detect any rules that were created, modified, or deleted unexpectedly.

Sources (7)
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.