Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2023-0594

Grafana is an open-source platform for monitoring and observability. Starting with the 7.0 branch, Grafana had a stored XSS vulnerability in the trace view visualization. The stored XSS vulnerability was possible due the value of a span's attributes/resources were not properly sanitized and this will be rendered when the span's attributes/resources are expanded. An attacker needs to have the Editor role in order to change the value of a trace view visualization to contain JavaScript. This means that vertical privilege escalation is possible, where a user with Editor role can change to a known password for a user having Admin role if the user with Admin role executes malicious JavaScript viewing a dashboard. Users may upgrade to version 8.5.21, 9.2.13 and 9.3.8 to receive a fix.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-0594
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 03:46 UTC · Revision 1

Source evidence

CVE-2023-0594

core-osv · Original source

Published 1 Mar 2023, 15:36 UTC

Grafana is an open-source platform for monitoring and observability. Starting with the 7.0 branch, Grafana had a stored XSS vulnerability in the trace view visualization. The stored XSS vulnerability was possible due the value of a span's attributes/resources were not properly sanitized and this will be rendered when the span's attributes/resources are expanded. An attacker needs to have the Editor role in order to change the value of a trace view visualization to contain JavaScript. This means that vertical privilege escalation is possible, where a user with Editor role can change to a known password for a user having Admin role if the user with Admin role executes malicious JavaScript viewing a dashboard. Users may upgrade to version 8.5.21, 9.2.13 and 9.3.8 to receive a fix.

osv:CVE-2023-0594
Complete source record
{
  "id": "b5a2114f9d087ee583cfde8a29db80903e98ed3534b5d18702de29a70583c7b9",
  "url": "https://osv.dev/vulnerability/CVE-2023-0594",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2023-0594",
    "summary": "Grafana is an open-source platform for monitoring and observability. Starting with the 7.0 branch, Grafana had a stored XSS vulnerability in the trace view visualization. The stored XSS vulnerability was possible due the value of a span's attributes/resources were not properly sanitized and this will be rendered when the span's attributes/resources are expanded. An attacker needs to have the Editor role in order to change the value of a trace view visualization to contain JavaScript. This means that vertical privilege escalation is possible, where a user with Editor role can change to a known password for a user having Admin role if the user with Admin role executes malicious JavaScript viewing a dashboard. Users may upgrade to version 8.5.21, 9.2.13 and 9.3.8 to receive a fix.",
    "evidence": "osv:CVE-2023-0594",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-0594",
      "aliases": [
        "BIT-grafana-2023-0594",
        "CVE-2023-0594",
        "GHSA-xw5p-hw8j-xg4q"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/grafana/grafana",
              "type": "GIT",
              "events": [
                {
                  "introduced": "aee1438ff2f7a8df8d7f2b825f2af9c9edbaa8ed"
                },
                {
                  "fixed": "f5c82deccc9cf60dc00efdd56fe12414b0db1e10"
                },
                {
                  "introduced": "c7eea48209eb93819a0ab7593921fffba5b2d339"
                },
                {
                  "fixed": "0304ba085a385493fe52867e53d7f000a7e9294e"
                },
                {
                  "introduced": "e9cb2a313ecc5a8e3cfeca7d2b7df2878802096e"
                },
                {
                  "fixed": "7ab70dbce8bd7cf4ad5273ff859a346eeb65bc76"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.0"
                      },
                      {
                        "fixed": "8.5.21"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "9.2.0"
                      },
                      {
                        "fixed": "9.2.13"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "9.3.0"
                      },
                      {
                        "fixed": "9.3.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-0594.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:53.327655129Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/0xxx/CVE-2023-0594.json",
        "https://grafana.com/security/security-advisories/cve-2023-0594/",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-0594",
        "https://security.netapp.com/advisory/ntap-20230331-0007/"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GRAFANA",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0.0"
                  },
                  {
                    "fixed": "8.5.21"
                  },
                  {
                    "introduced": "9.0.0"
                  },
                  {
                    "fixed": "9.2.13"
                  },
                  {
                    "introduced": "9.3.0"
                  },
                  {
                    "fixed": "9.3.8"
                  },
                  {
                    "introduced": "7.0.0"
                  },
                  {
                    "fixed": "8.5.21"
                  },
                  {
                    "introduced": "9.0.0"
                  },
                  {
                    "fixed": "9.2.13"
                  },
                  {
                    "introduced": "9.3.0"
                  },
                  {
                    "fixed": "9.3.8"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/0xxx/CVE-2023-0594.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-0594",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 522329,
  "published_at": "2023-03-01T15:36:43.881+00:00"
}