NetSight
high7.6Public exploit code

CVE-2025-4123

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

Public exploit code

Working exploit or proof of concept code has been published for this vulnerability. Treat unpatched systems as at risk.

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
gogithub.com/grafana/grafana< 0.0.0-20250521183405-c7a690348df70.0.0-20250521183405-c7a690348df7

Affected products

VendorProductAffected versions
GrafanaGrafana
before 10.4.18
from 11.2.0 before 11.2.9
from 11.3.0 before 11.3.6
from 11.4.0 before 11.4.4
from 11.5.0 before 11.5.4
from 11.6.0 before 11.6.1

Weakness classification

References