CVE-2026-17183: CWE-863: INCORRECT AUTHORIZATION in Grafana Grafana OSS
An authenticated user with permission to create or edit alert rules can bypass datasource query authorization by marking an alert rule query as a server-side expression while referencing a real datasource UID (incorrect authorization). This can expose data accessible through Grafana's configured datasource credentials to users who lack permission to query that datasource.
AI Analysis
Technical Summary
This vulnerability in Grafana OSS occurs in the Unified Alerting component where an attacker with permission to create or edit alert rules in a folder can bypass datasource query permissions. By submitting an alert-rule query with queryType set to "__expr__" and specifying the UID of a real datasource, the authorization path incorrectly skips permission enforcement because it trusts the client-controlled queryType. However, during query evaluation, Grafana uses the datasource UID to execute the query with the datasource's credentials. This inconsistency between authorization and execution leads to unauthorized data access. The root cause is improper authorization logic that does not validate the relationship between queryType and datasource UID, allowing a low-privileged user to access data they should not query directly.
Potential Impact
The vulnerability allows a low-privileged authenticated user to access data from datasources for which they lack query permissions, resulting in a high confidentiality impact. Integrity impact is low since some datasources may allow state-changing queries, but no availability impact has been demonstrated. The scope remains unchanged as the impact is confined within Grafana's security boundaries.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The recommended remediation includes not exempting queries from datasource authorization based solely on client-controlled queryType, resolving the referenced datasource server-side before authorization, enforcing datasources:query permission for real datasources, and ensuring authorization and evaluation use the same canonical datasource identity. Additionally, expression queries should only reference the canonical server-side expression datasource, rejecting mismatches. Regression tests should cover scenarios with folder-level alert-rule edit permission but without datasource query permission. Until a patch is released, restrict alert rule edit permissions to trusted users only.
CVE-2026-17183: CWE-863: INCORRECT AUTHORIZATION in Grafana Grafana OSS
Description
An authenticated user with permission to create or edit alert rules can bypass datasource query authorization by marking an alert rule query as a server-side expression while referencing a real datasource UID (incorrect authorization). This can expose data accessible through Grafana's configured datasource credentials to users who lack permission to query that datasource.
CVSS v3.1
Score 7.1high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in Grafana OSS occurs in the Unified Alerting component where an attacker with permission to create or edit alert rules in a folder can bypass datasource query permissions. By submitting an alert-rule query with queryType set to "__expr__" and specifying the UID of a real datasource, the authorization path incorrectly skips permission enforcement because it trusts the client-controlled queryType. However, during query evaluation, Grafana uses the datasource UID to execute the query with the datasource's credentials. This inconsistency between authorization and execution leads to unauthorized data access. The root cause is improper authorization logic that does not validate the relationship between queryType and datasource UID, allowing a low-privileged user to access data they should not query directly.
Potential Impact
The vulnerability allows a low-privileged authenticated user to access data from datasources for which they lack query permissions, resulting in a high confidentiality impact. Integrity impact is low since some datasources may allow state-changing queries, but no availability impact has been demonstrated. The scope remains unchanged as the impact is confined within Grafana's security boundaries.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The recommended remediation includes not exempting queries from datasource authorization based solely on client-controlled queryType, resolving the referenced datasource server-side before authorization, enforcing datasources:query permission for real datasources, and ensuring authorization and evaluation use the same canonical datasource identity. Additionally, expression queries should only reference the canonical server-side expression datasource, rejecting mismatches. Regression tests should cover scenarios with folder-level alert-rule edit permission but without datasource query permission. Until a patch is released, restrict alert rule edit permissions to trusted users only.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GRAFANA
- Date Reserved
- 2026-07-24T18:38:02.221Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a85eb30acd9273b4966721e
Added to database: 08/19/2026, 17:43:12 UTC
Last enriched: 08/19/2026, 17:54:42 UTC
Last updated: 08/20/2026, 01:24:10 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.