Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/grafana/grafana
  4. ›
  5. CVE-2025-4123

CVE-2025-4123: Grafana Cross-Site-Scripting (XSS) via custom loaded frontend plugin

May 22, 2025 (updated July 21, 2025)

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.

References

  • github.com/advisories/GHSA-q53q-gxq9-mgrj
  • github.com/grafana/grafana
  • github.com/grafana/grafana/commit/c7a690348df761d41b659224cbc50a46a0c0e4cc
  • grafana.com/blog/2025/05/23/grafana-security-release-medium-and-high-severity-security-fixes-for-cve-2025-4123-and-cve-2025-3580
  • grafana.com/security/security-advisories/cve-2025-4123
  • nvd.nist.gov/vuln/detail/CVE-2025-4123
  • pkg.go.dev/vuln/GO-2025-3702

Code Behaviors & Features

Detect and mitigate CVE-2025-4123 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.0-20250521183405-c7a690348df7

Fixed versions

  • 0.0.0-20250521183405-c7a690348df7

Solution

Upgrade to version 0.0.0-20250521183405-c7a690348df7 or above.

Impact 7.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

go/github.com/grafana/grafana/CVE-2025-4123.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 07 Dec 2025 12:18:23 +0000.