CVE-2026-27877: Github.com/grafana/grafana Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-3q27-7qjq-p9c5
CVSS 6.5
CWE-312 CWE-200
Published
Advisory Summary

CVE-2026-27877 is a MODERATE (CVSS 6.5) remote code execution vulnerability (CWE-312: Cleartext Storage of Sensitive Information) affecting Github.com/grafana/grafana libraries in the Go ecosystem. The issue involves grafana public dashboards disclose all direct mode datasources. Remediation is available by upgrading affected packages to version 1.9.2-0.20260325055210-3522153e07b4.

CVE-2026-27877 at a Glance

CVE Identifier CVE-2026-27877
GHSA Identifier GHSA-3q27-7qjq-p9c5
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-312: Cleartext Storage of Sensitive Information
Affected Product Github.com/grafana/grafana
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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

How to Fix CVE-2026-27877

To remediate this vulnerability, upgrade all affected Github.com/grafana/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: Latest secure release
Upgrade github.com/grafana/grafana to Latest secure release
github.com/grafana/grafana fixed: Latest secure release
Upgrade github.com/grafana/grafana to Latest secure release
github.com/grafana/grafana fixed: Latest secure release
Upgrade github.com/grafana/grafana to Latest secure release
github.com/grafana/grafana fixed: Latest secure release
Upgrade github.com/grafana/grafana to Latest secure release
github.com/grafana/grafana fixed: Latest secure release
Upgrade github.com/grafana/grafana to Latest secure release
github.com/grafana/grafana fixed: 1.9.2-0.20260325055210-3522153e07b4
Upgrade github.com/grafana/grafana to 1.9.2-0.20260325055210-3522153e07b4
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-27877, inspect your project dependencies for Github.com/grafana/grafana:

inspect dependencies for github.com/grafana/grafana

Analyze the terminal output to locate any version of Github.com/grafana/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.20260325055210-3522153e07b4), 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-312: Cleartext Storage of Sensitive Information, where the product stores sensitive information in cleartext within a resource that might be accessible to another control sphere. In Github.com/grafana/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 using public dashboards and direct data-sources, all direct data-sources' passwords are exposed despite not being used in dashboards. No passwords of proxied data-sources are exposed. We encourage all direct data-sources to be converted to proxied data-sources as far as possible to improve your deployments' security.

CVE-2026-27877 Affected Github.com/grafana/grafana Versions

6 component(s)
Fixed Versions:
1.9.2-0.20260325055210-3522153e07b4
Product / Package Ecosystem Affected Versions Fixed Version
github.com/grafana/grafana
Go
≥ 9.3.0
github.com/grafana/grafana
Go
≥ 12.0.0
github.com/grafana/grafana
Go
≥ 12.2.0
github.com/grafana/grafana
Go
≥ 12.3.0
github.com/grafana/grafana
Go
≥ 12.4.0
github.com/grafana/grafana
Go
≥ 1.9.2-0.20221116104934-4ee83a5f2bf4
< 1.9.2-0.20260325055210-3522153e07b4
1.9.2-0.20260325055210-3522153e07b4

References

Frequently Asked Questions

What is CVE-2026-27877?
CVE-2026-27877 is a security vulnerability in Github.com/grafana/grafana involving Grafana public dashboards disclose all direct mode datasources under CWE-312: Cleartext Storage of Sensitive Information.
Which Github.com/grafana/grafana versions are affected?
Affected versions include releases prior to 1.9.2-0.20260325055210-3522153e07b4 across affected packages: github.com/grafana/grafana.
What version fixes CVE-2026-27877?
Upgrading to 1.9.2-0.20260325055210-3522153e07b4 (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 Latest secure release, 1.9.2-0.20260325055210-3522153e07b4. Upgrade your dependency to Latest secure release, 1.9.2-0.20260325055210-3522153e07b4 or later.
What is the CVSS score of CVE-2026-27877?
CVE-2026-27877 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2026-27877?
CVE-2026-27877 is classified under CWE-312: Cleartext Storage of Sensitive Information (The product stores sensitive information in cleartext within a resource that might be accessible to another control sphere.).
How can I check Go dependencies for CVE-2026-27877?
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-3q27-7qjq-p9c5",
  "modified" : "2026-05-13T13:44:32Z",
  "published" : "2026-03-27T15:30:25Z",
  "aliases" : [ "CVE-2026-27877" ],
  "summary" : "Grafana public dashboards disclose all direct mode datasources",
  "details" : "When using public dashboards and direct data-sources, all direct data-sources' passwords are exposed despite not being used in dashboards.\n\nNo passwords of proxied data-sources are exposed. We encourage all direct data-sources to be converted to proxied data-sources as far as possible to improve your deployments' security.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.3.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 11.6.14"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.0.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 12.1.10"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.2.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 12.2.8"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.3.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 12.3.6"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.4.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 12.4.2"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.9.2-0.20221116104934-4ee83a5f2bf4"
      }, {
        "fixed" : "1.9.2-0.20260325055210-3522153e07b4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-27877"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/grafana/grafana"
  }, {
    "type" : "WEB",
    "url" : "https://grafana.com/security/security-advisories/cve-2026-27877"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-312" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-02T20:43:50Z",
    "nvd_published_at" : "2026-03-27T15:16:51Z"
  }
}