VDB
Sign up
HIGH7.3

GHSA-9g84-39mm-q4p3

Grafana geomap panel's XYZ tile layer has a sanitize-then-interpolate ordering bug

Quick fix

GHSA-9g84-39mm-q4p3 — github.com/grafana/grafana: upgrade to the fixed version with the command below.

go get github.com/grafana/grafana@v1.9.2-0.20260616075434-82ef13993059

Details

The geomap panel's XYZ tile layer has a sanitize-then-interpolate ordering bug. sanitizeTextPanelContent() runs on the raw template string before getTemplateSrv().replace() substitutes the variable value, which uses the glob format with no HTML escaping. The result is passed to OpenLayers via element.innerHTML. An Editor can set a textbox variable's default value to an XSS payload that executes for every user who opens the dashboard. This is a bypass of the CVE-2023-0507 fix

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/grafana/grafana
Introduced in: 2.0.0-beta1

No fixed version published yet for github.com/grafana/grafana (go modules). Pin to a known-safe version or switch to an alternative.

Go/github.com/grafana/grafana
Introduced in: 13.0.0

No fixed version published yet for github.com/grafana/grafana (go modules). Pin to a known-safe version or switch to an alternative.

Go/github.com/grafana/grafana
Introduced in: 0Fixed in: 1.9.2-0.20260616075434-82ef13993059
Fixgo get github.com/grafana/grafana@v1.9.2-0.20260616075434-82ef13993059

References