Advisory

GHSA-q53q-gxq9-mgrj

Also known as: BIT-grafana-2025-4123, CVE-2025-4123, GO-2025-3704

Summary

Grafana Cross-Site-Scripting (XSS) via custom loaded frontend plugin

Details

A cross-site scripting (XSS) vulnerability exists in Grafana caused by combining a client path traversal and open redirect. This allows attackers to redirect users to a website that hosts a frontend plugin that will execute arbitrary JavaScript. This vulnerability does not require editor permissions and if anonymous access is enabled, the XSS will work. If the Grafana Image Renderer plugin is installed, it is possible to exploit the open redirect to achieve a full read SSRF.

The default Content-Security-Policy (CSP) in Grafana will block the XSS though the connect-src directive.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-05-22 09:33 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/grafana/grafana

Go · All systems

Affected

  • introduced 0, fixed 0.0.0-20250521183405-c7a690348df7 (semver)

Fixed versions

0.0.0-20250521183405-c7a690348df7

Fix

  • Fixed version 0.0.0-20250521183405-c7a690348df7
    go get github.com/grafana/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences