Skip to main content
ExploitedNot in CISA KEV yetFix available

CVE-2025-4123

grafana: Cross-site Scripting (XSS) in Grafana via Custom Frontend Plugins and Open Redirect

Exploitation confirmed. First attested on 2025-06-17 by ENISA EUVD, GCVE · enisa-cnw-kev, GCVE · previdian, GCVE · shadowserver.

  • Published2025-05-22
  • Fixed in12.0.0 · 11.6.1 · 11.5.4 · 11.4.4 · 11.3.6 · 11.2.9
  • WeaknessCWE-601 · CWE-79

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2025-05-2208:15CVE publishedNVD
  2. 2025-06-1715:00Listed as exploited by GCVEGCVE
  3. 2025-06-1715:00Exploitation first reportedGCVE
  4. 2026-04-06Exploit-DB entryExploit-DB
  5. 2026-11-23Reported as exploited by ENISA (EUVD)ENISA EUVD
  6. 2026-12-0204:55EPSS crossed 10 %FIRST EPSS

Versions per branch

OSV · NVD
Grafana
BranchAffectedFixed in
12.0≥ 12.0.0, < 12.0.012.0.0
11.6≥ 11.6.0, < 11.6.111.6.1
11.x≥ 11.0.0, < 11.6.111.6.1
11.5≥ 11.5.0, < 11.5.411.5.4
11.4≥ 11.4.0, < 11.4.411.4.4
11.3≥ 11.3.0, < 11.3.611.3.6
11.2≥ 11.2.0, < 11.2.911.2.9
10.4< 10.4.1810.4.18
10.4= 10.4.18no fix published
11.2= 11.2.9no fix published
11.3= 11.3.6no fix published
11.4= 11.4.4no fix published
grafana/grafana
BranchAffectedFixed in
0.0< 0.0.0-20250521183405-c7a690348df70.0.0-20250521183405-c7a690348df7

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GRAFANA, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Grafanaother versions: not affected
    Affected
    • ≥ 10.4.18+security-01, < 10.4.19fixed in 10.4.19semver
    • ≥ 11.2.9+security-01, < 11.2.10fixed in 11.2.10semver
    • ≥ 11.3.6+security-01, < 11.3.7fixed in 11.3.7semver
    • ≥ 11.4.4+security-01, < 11.4.5fixed in 11.4.5semver
    • ≥ 11.5.4+security-01, < 11.5.5fixed in 11.5.5semver
    • ≥ 11.6.1+security-01, < 11.6.2fixed in 11.6.2semver
    • ≥ 12.0.0+security-01, < 12.0.1fixed in 12.0.1semver

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2025-07-18

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • govulncheck-vulndbopenSUSE:Tumbleweedall versions · fixed in 0.0.20250527T204717-1.1
  • grafanaUbuntu:16.04:LTSall versions · no fixed version listed
  • grafanaRocky Linux:10all versions · fixed in 0:10.2.6-17.el10_0
  • grafanaRocky Linux:9all versions · fixed in 0:10.2.6-13.el9_6
  • grafanaRocky Linux:8all versions · fixed in 0:9.2.10-23.el8_10
  • grafanaRed Hat:rhel_tus:8.8::appstreamall versions · fixed in 0:7.5.15-7.el8_8and 1 other package
  • grafanaRed Hat:rhel_tus:8.6::appstreamall versions · fixed in 0:7.5.11-6.el8_6and 1 other package
  • grafanaRed Hat:rhel_eus:9.4::appstreamall versions · fixed in 0:9.2.10-23.el9_4and 3 other packages

23 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-4123 Red Hat Product Security131 products fixed

    grafana: Cross-site Scripting (XSS) in Grafana via Custom Frontend Plugins and Open Redirect

  • RHSA-2025:8680 Red Hat Product Security13 products fixed

    Red Hat Security Advisory: grafana security update

  • RHSA-2025:8679 Red Hat Product Security15 products fixed

    Red Hat Security Advisory: grafana security update

  • RHSA-2025:8681 Red Hat Product Security9 products fixed

    Red Hat Security Advisory: grafana security update

  • RHSA-2025:8683 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: grafana security update

  • RHSA-2025:8685 Red Hat Product Security8 products fixed

    Red Hat Security Advisory: grafana security update

5 more advisories

Full record on NVD

Fix

  1. Update Grafana to 12.0.0 · 11.6.1 · 11.5.4 · 11.4.4 · 11.3.6 · 11.2.9 · 10.4.18
  2. Vendor fix Red Hat Product Security RHSA-2025:8680 · 13 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. Workaround from the vendor Red Hat Product Security RHSA-2025:8680 · 13 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Advisories and patches

Detection

read 2026-11-26 11:35 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
EDB-52491
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
2025-05-22
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-q53q-gxq9-mgrj

Frequently asked questions

What is CVE-2025-4123?

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.

Is CVE-2025-4123 actively exploited?

Active exploitation of CVE-2025-4123 has not been confirmed. Its EPSS score was 97.4% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2025-4123?

CVE-2025-4123 has a CVSS v3 base score of 6.1 (Medium severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.

Running Grafana? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record