{"answers":{"affected":"4 open source packages ship an affected version, including github.com/grafana/grafana and grafana. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-4123 exists.","fix":"Upgrade github.com/grafana/grafana to 0.0.0-20250521183405-c7a690348df7 or later.","what":"CVE-2025-4123 is a high-severity cross-site scripting vulnerability in Grafana Grafana, published on 22 May 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-4123 and fix it if it is affected.\n\nWhat it is: CVE-2025-4123 is a high-severity cross-site scripting vulnerability in Grafana Grafana, published on 22 May 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-4123 exists.\n\nAffected packages and fixed versions:\n- github.com/grafana/grafana (Go): affected all versions; no fix listed\n- github.com/grafana/grafana (Go): affected all versions; fixed in 0.0.0-20250521183405-c7a690348df7\n- github.com/grafana/grafana (Go): affected all versions; fixed in 0.0.0-20250521183405-c7a690348df7\n- grafana (Bitnami): affected all versions; fixed in 10.4.18, 11.6.1, 12.0.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-4123/ (Markdown: https://insights.sbomify.com/CVE-2025-4123/index.md)","id":"CVE-2025-4123","markdown":"https://insights.sbomify.com/CVE-2025-4123/index.md","name":"CVE-2025-4123","record":{"aliases":["ALSA-2025:7893","ALSA-2025:7894","BIT-grafana-2025-4123","GHSA-q53q-gxq9-mgrj","GO-2025-3704","MINI-2h6v-mc85-j229","MINI-3fxc-q25m-38gj","MINI-3wpq-2h2r-qrmm","MINI-4vcm-q2c7-hrvx","MINI-75rj-9888-x963","MINI-7rmx-j6h7-w7cr","MINI-897q-8pvf-c52q","MINI-ggw8-rq29-mw4v","MINI-j6wj-ww4m-x3f6","MINI-mv8q-6c6w-74jg","MINI-pp23-j3c8-6xfw","MINI-ppg9-gm9w-jxc3","MINI-r8j4-gwxq-hwjf","MINI-vc26-x4rr-cm5r","MINI-vr2q-rc2j-48fp","MINI-w5mw-jvxv-j66f","MINI-x483-vp4m-83xp","RHSA-2025:7892","RHSA-2025:7893","RHSA-2025:7894","RHSA-2025:8679","RHSA-2025:8681","RHSA-2025:8683","RHSA-2025:8684","RLSA-2025:7892","RLSA-2025:7893","RLSA-2025:7894","UBUNTU-CVE-2025-4123"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Grafana monitoring platform","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript via XSS or read internal data via SSRF in Grafana, potentially compromising user sessions and sensitive information.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GRAFANA","cpe":[{"product":"grafana","vendor":"grafana"}],"cvss":{"score":7.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"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.\n\nThe default Content-Security-Policy (CSP) in Grafana will block the XSS though the `connect-src` directive.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Bitnami","Go","Red Hat:enterprise_linux:10.0","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:rhel_aus:8.2::appstream","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_e4s:8.6::appstream","Red Hat:rhel_e4s:9.0::appstream","Red Hat:rhel_tus:8.6::appstream","Rocky Linux:10","Rocky Linux:8","Rocky Linux:9"],"exploits":{"exploitdb":1,"first_seen":"2025-05-22","github_poc":5,"max_poc_stars":58,"metasploit":0,"nuclei":1,"refs":[{"date":"2025-05-22T15:34:03Z","kind":"github_poc","ref":"https://github.com/NightBloodZ/CVE-2025-4123","stars":58,"title":"Script to exploit Grafana CVE-2025-4123: XSS and Full-Read SSRF"},{"date":"2025-06-04T12:42:01Z","kind":"github_poc","ref":"https://github.com/ynsmroztas/CVE-2025-4123-Exploit-Tool-Grafana-","stars":33,"title":"CVE-2025-4123 - Grafana Tool"},{"date":"2025-06-03T06:24:32Z","kind":"github_poc","ref":"https://github.com/imbas007/CVE-2025-4123-template","stars":0,"title":null},{"date":"2025-09-12T07:53:19Z","kind":"github_poc","ref":"https://github.com/ItsNee/Grafana-CVE-2025-4123-POC","stars":0,"title":"Grafana CVE-2025-4123-POC"},{"date":"2025-10-14T22:06:26Z","kind":"github_poc","ref":"https://github.com/MorphyKutay/CVE-2025-4123-Exploit","stars":0,"title":"CVE-2025-4123 Grafana Open Redirect Exploit"},{"date":"2026-04-06","kind":"exploitdb","ref":"52491","stars":null,"title":"Grafana 11.6.0 - SSRF"},{"date":null,"kind":"nuclei","ref":"http/cves/2025/CVE-2025-4123.yaml","stars":null,"title":"Grafana - XSS / Open Redirect / SSRF via Client Path Traversal"}],"tier":"weaponised"},"has_fix":true,"headline":"Grafana Cross-Site-Scripting (XSS) via custom loaded frontend plugin","id":"CVE-2025-4123","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"grafana:grafana","products":["grafana:grafana"],"type":"xss","year":"2025"},"n_packages":47,"n_references":2,"next":{"headline":"ISPSoft File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability","id":"CVE-2025-4124"},"packages":[{"ecosystem":"Bitnami","fixed":["10.4.18","11.6.1","12.0.0"],"introduced":["0","11.0.0","12.0.0"],"last_affected":[],"package":"grafana","purl":"pkg:bitnami/grafana","source":"BIT-grafana-2025-4123"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GO-2025-3704"},{"ecosystem":"Go","fixed":["0.0.0-20250521183405-c7a690348df7"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":null,"source":"GHSA-q53q-gxq9-mgrj"},{"ecosystem":"Go","fixed":["0.0.0-20250521183405-c7a690348df7"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GHSA-q53q-gxq9-mgrj"},{"ecosystem":"AlmaLinux:8","fixed":["9.2.10-23.el8_10"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/almalinux/grafana","source":"ALSA-2025:7894"},{"ecosystem":"AlmaLinux:8","fixed":["9.2.10-23.el8_10"],"introduced":["0"],"last_affected":[],"package":"grafana-selinux","purl":"pkg:rpm/almalinux/grafana-selinux","source":"ALSA-2025:7894"},{"ecosystem":"AlmaLinux:9","fixed":["10.2.6-13.el9_6"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/almalinux/grafana","source":"ALSA-2025:7893"},{"ecosystem":"AlmaLinux:9","fixed":["10.2.6-13.el9_6"],"introduced":["0"],"last_affected":[],"package":"grafana-selinux","purl":"pkg:rpm/almalinux/grafana-selinux","source":"ALSA-2025:7893"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:10.2.6-17.el10_0"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/redhat/grafana","source":"RHSA-2025:7892"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:10.2.6-17.el10_0"],"introduced":["0"],"last_affected":[],"package":"grafana-debuginfo","purl":"pkg:rpm/redhat/grafana-debuginfo","source":"RHSA-2025:7892"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:10.2.6-17.el10_0"],"introduced":["0"],"last_affected":[],"package":"grafana-debugsource","purl":"pkg:rpm/redhat/grafana-debugsource","source":"RHSA-2025:7892"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:10.2.6-17.el10_0"],"introduced":["0"],"last_affected":[],"package":"grafana-selinux","purl":"pkg:rpm/redhat/grafana-selinux","source":"RHSA-2025:7892"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:9.2.10-23.el8_10"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/redhat/grafana","source":"RHSA-2025:7894"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:9.2.10-23.el8_10"],"introduced":["0"],"last_affected":[],"package":"grafana-debuginfo","purl":"pkg:rpm/redhat/grafana-debuginfo","source":"RHSA-2025:7894"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:9.2.10-23.el8_10"],"introduced":["0"],"last_affected":[],"package":"grafana-debugsource","purl":"pkg:rpm/redhat/grafana-debugsource","source":"RHSA-2025:7894"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:9.2.10-23.el8_10"],"introduced":["0"],"last_affected":[],"package":"grafana-selinux","purl":"pkg:rpm/redhat/grafana-selinux","source":"RHSA-2025:7894"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:10.2.6-13.el9_6"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/redhat/grafana","source":"RHSA-2025:7893"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:10.2.6-13.el9_6"],"introduced":["0"],"last_affected":[],"package":"grafana-debuginfo","purl":"pkg:rpm/redhat/grafana-debuginfo","source":"RHSA-2025:7893"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:10.2.6-13.el9_6"],"introduced":["0"],"last_affected":[],"package":"grafana-debugsource","purl":"pkg:rpm/redhat/grafana-debugsource","source":"RHSA-2025:7893"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:10.2.6-13.el9_6"],"introduced":["0"],"last_affected":[],"package":"grafana-selinux","purl":"pkg:rpm/redhat/grafana-selinux","source":"RHSA-2025:7893"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:6.3.6-7.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/redhat/grafana","source":"RHSA-2025:8684"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:6.3.6-7.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-azure-monitor","purl":"pkg:rpm/redhat/grafana-azure-monitor","source":"RHSA-2025:8684"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:6.3.6-7.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-cloudwatch","purl":"pkg:rpm/redhat/grafana-cloudwatch","source":"RHSA-2025:8684"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:6.3.6-7.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-debuginfo","purl":"pkg:rpm/redhat/grafana-debuginfo","source":"RHSA-2025:8684"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:6.3.6-7.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-elasticsearch","purl":"pkg:rpm/redhat/grafana-elasticsearch","source":"RHSA-2025:8684"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:6.3.6-7.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-graphite","purl":"pkg:rpm/redhat/grafana-graphite","source":"RHSA-2025:8684"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:6.3.6-7.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-influxdb","purl":"pkg:rpm/redhat/grafana-influxdb","source":"RHSA-2025:8684"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:6.3.6-7.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-loki","purl":"pkg:rpm/redhat/grafana-loki","source":"RHSA-2025:8684"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:6.3.6-7.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-mssql","purl":"pkg:rpm/redhat/grafana-mssql","source":"RHSA-2025:8684"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:6.3.6-7.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-mysql","purl":"pkg:rpm/redhat/grafana-mysql","source":"RHSA-2025:8684"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:6.3.6-7.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-opentsdb","purl":"pkg:rpm/redhat/grafana-opentsdb","source":"RHSA-2025:8684"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:6.3.6-7.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-postgres","purl":"pkg:rpm/redhat/grafana-postgres","source":"RHSA-2025:8684"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:6.3.6-7.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-prometheus","purl":"pkg:rpm/redhat/grafana-prometheus","source":"RHSA-2025:8684"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:6.3.6-7.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-stackdriver","purl":"pkg:rpm/redhat/grafana-stackdriver","source":"RHSA-2025:8684"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.3.6-9.el8_4"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/redhat/grafana","source":"RHSA-2025:8683"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.3.6-9.el8_4"],"introduced":["0"],"last_affected":[],"package":"grafana-debuginfo","purl":"pkg:rpm/redhat/grafana-debuginfo","source":"RHSA-2025:8683"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:7.5.11-6.el8_6"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/redhat/grafana","source":"RHSA-2025:8679"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:7.5.11-6.el8_6"],"introduced":["0"],"last_affected":[],"package":"grafana-debuginfo","purl":"pkg:rpm/redhat/grafana-debuginfo","source":"RHSA-2025:8679"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["0:7.5.11-6.el8_6"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/redhat/grafana","source":"RHSA-2025:8679"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["0:7.5.11-6.el8_6"],"introduced":["0"],"last_affected":[],"package":"grafana-debuginfo","purl":"pkg:rpm/redhat/grafana-debuginfo","source":"RHSA-2025:8679"}],"prev":{"headline":"Netgear JWNR2000v2 sub_435E04 command injection","id":"CVE-2025-4122"},"products":["Grafana"],"published":"2025-05-22","related":[{"cvss_score":7.5,"headline":"Grafana Path Traversal","id":"CVE-2021-43798","kev_date_added":"2025-10-09","published":"2021-12-07"},{"cvss_score":10,"headline":"Incorrect privilege assignment","id":"CVE-2025-41115","kev_date_added":null,"published":"2025-11-21"},{"cvss_score":9.8,"headline":"Grafana vulnerable to race condition allowing privilege escalation","id":"CVE-2022-39328","kev_date_added":null,"published":"2022-11-08"},{"cvss_score":9.8,"headline":"Auth bypass in n/a","id":"CVE-2022-28660","kev_date_added":null,"published":"2022-05-20"},{"cvss_score":9.8,"headline":"Information disclosure in n/a","id":"CVE-2022-26148","kev_date_added":null,"published":"2022-03-21"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2018-15727","kev_date_added":null,"published":"2018-08-29"},{"cvss_score":9.4,"headline":"Grafana SQL Expressions allow for remote code execution","id":"CVE-2024-9264","kev_date_added":null,"published":"2024-10-18"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-29","vendors":["Grafana"]},"summary":"Attackers can execute arbitrary JavaScript via XSS or read internal data via SSRF in Grafana, potentially compromising user sessions and sensitive information.","url":"https://insights.sbomify.com/CVE-2025-4123/"}