CVE-2026-33381: Grafana Users Can Generate Service Account Vulnerability

MODERATE
Advisory Identifier: GHSA-wfhv-mj62-f5xh
CVSS 5.9
CWE-284
Published
Advisory Summary

CVE-2026-33381 is a MODERATE (CVSS 5.9) users can generate service account vulnerability (CWE-284: Improper Access Control) affecting Grafana libraries in the Go ecosystem. The issue involves users can generate service account tokens after permissions removal. Remediation is available by upgrading affected packages to version 1.9.2-0.20260513165311-fb7336fc36c1.

CVE-2026-33381 at a Glance

CVE Identifier CVE-2026-33381
GHSA Identifier GHSA-wfhv-mj62-f5xh
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-284: Improper Access Control
Affected Product Grafana
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-33381

To remediate this vulnerability, upgrade all affected Grafana dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/grafana/grafana fixed: 1.9.2-0.20260513165311-fb7336fc36c1
Upgrade github.com/grafana/grafana to 1.9.2-0.20260513165311-fb7336fc36c1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/grafana/grafana

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-33381, inspect your project dependencies for Grafana:

inspect dependencies for github.com/grafana/grafana

Analyze the terminal output to locate any version of Grafana in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.2-0.20260513165311-fb7336fc36c1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Grafana, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

When a user's access to mint tokens for a service account is revoked, it is sometimes still possible to do so for a few seconds after the event. The user will eventually lose access to do this.

CVE-2026-33381 Affected Grafana Versions

1 component(s)
Fixed Versions:
1.9.2-0.20260513165311-fb7336fc36c1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/grafana/grafana
Go
< 1.9.2-0.20260513165311-fb7336fc36c1
1.9.2-0.20260513165311-fb7336fc36c1

References

Frequently Asked Questions

What is CVE-2026-33381?
CVE-2026-33381 is a security vulnerability in Grafana involving Users can generate Service Account tokens after permissions removal under CWE-284: Improper Access Control.
Which Grafana versions are affected?
Affected versions include releases prior to 1.9.2-0.20260513165311-fb7336fc36c1 across affected packages: github.com/grafana/grafana.
What version fixes CVE-2026-33381?
Upgrading to 1.9.2-0.20260513165311-fb7336fc36c1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/grafana/grafana affected?
Yes, github.com/grafana/grafana is affected in releases prior to 1.9.2-0.20260513165311-fb7336fc36c1. Upgrade your dependency to 1.9.2-0.20260513165311-fb7336fc36c1 or later.
What is the CVSS score of CVE-2026-33381?
CVE-2026-33381 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2026-33381?
CVE-2026-33381 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Go dependencies for CVE-2026-33381?
Run the dependency tree command: 'inspect dependencies for github.com/grafana/grafana'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-wfhv-mj62-f5xh",
  "modified" : "2026-06-18T13:05:23Z",
  "published" : "2026-05-13T21:32:06Z",
  "aliases" : [ "CVE-2026-33381" ],
  "summary" : "Grafana: Users can generate Service Account tokens after permissions removal",
  "details" : "When a user's access to mint tokens for a service account is revoked, it is sometimes still possible to do so for a few seconds after the event. The user will eventually lose access to do this.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.9.2-0.20260513165311-fb7336fc36c1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-33381"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/grafana/commit/fb7336fc36c14e1ff869482c5085ddb9f39e1b86"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/grafana/grafana"
  }, {
    "type" : "WEB",
    "url" : "https://grafana.com/security/security-advisories/cve-2026-33381"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-18T13:05:23Z",
    "nvd_published_at" : "2026-05-13T20:16:20Z"
  }
}