MediumGHSA-hjv9-hm2f-rpcjBIT-grafana-2023-0507CVE-2023-0507

Grafana vulnerable to Cross-site Scripting

Published 1 Mar 2023 · Updated 13 Feb 2025

Is your project on an affected github.com/grafana/grafana?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
>=8.1.0 <8.5.21
Fixed in
8.5.21
Update to the fixed version for your release line, for example:go get github.com/grafana/grafana@v8.5.21
Affected
>=9.0.0 <9.2.13
Fixed in
9.2.13
Update to the fixed version for your release line, for example:go get github.com/grafana/grafana@v9.2.13
Affected
>=9.3.0 <9.3.8
Fixed in
9.3.8
Update to the fixed version for your release line, for example:go get github.com/grafana/grafana@v9.3.8

Details

Grafana is an open-source platform for monitoring and observability. Starting with the 8.1 branch, Grafana had a stored XSS vulnerability affecting the core plugin GeoMap. The stored XSS vulnerability was possible due to map attributions weren't properly sanitized and allowed arbitrary JavaScript to be executed in the context of the currently authorized user of the Grafana instance. An attacker needs to have the Editor role in order to change a panel to include a map attribution containing 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.

Is GHSA-hjv9-hm2f-rpcj in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/grafana/grafana, and gives you the command that fixes it.

More advisories for github.com/grafana/grafana

  • LowCVE-2026-21727Grafana legacy correlations allow cross-tenant disclosure and deletion in github.com/grafana/grafana · 7 Oct 2026
  • LowCVE-2026-42127Grafana: Pre-authentication denial of service in the public dashboard query handler in github.com/grafana/grafana · 28 Sept 2026
  • LowCVE-2026-9029Grafana geomap panel's XYZ tile layer has a sanitize-then-interpolate ordering bug in github.com/grafana/grafana · 28 Sept 2026
  • LowCVE-2026-42129Grafana Loki datasource plugin's callResource handler contains a path traversal vulnerability. in github.com/grafana/grafana · 28 Sept 2026
  • LowCVE-2026-10601Grafana: Path traversal in the Tempo and Loki data source plugins in github.com/grafana/grafana · 28 Sept 2026
  • LowCVE-2026-33381Grafana: Users can generate Service Account tokens after permissions removal in github.com/grafana/grafana · 25 Jun 2026
All 113 advisories for github.com/grafana/grafana

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.