CVE-2025-6023: Github.com/grafana/grafana Cross-Site Scripting Vulnerability
HIGHCVE-2025-6023 is a HIGH (CVSS 7.6) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Github.com/grafana/grafana libraries in the Go ecosystem. The issue involves grafana is vulnerable to xss attacks through open redirects and path traversal. Remediation is available by upgrading affected packages to version 1.9.2-0.20250521205822-0ba0b99665a9.
CVE-2025-6023 at a Glance
Security Impact
CVSS: 7.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L).
How to Fix CVE-2025-6023
To remediate this vulnerability, upgrade all affected Github.com/grafana/grafana dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/grafana/grafana to 1.9.2-0.20250521205822-0ba0b99665a9
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/grafana/grafana
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-6023, inspect your project dependencies for Github.com/grafana/grafana:
inspect dependencies for github.com/grafana/grafana
Analyze the terminal output to locate any version of Github.com/grafana/grafana in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.2-0.20250521205822-0ba0b99665a9), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Github.com/grafana/grafana, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-6023 Affected Github.com/grafana/grafana Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/grafana/grafana
|
Go |
< 1.9.2-0.20250521205822-0ba0b99665a9
|
1.9.2-0.20250521205822-0ba0b99665a9
|
References
Frequently Asked Questions
What is CVE-2025-6023?
Which Github.com/grafana/grafana versions are affected?
What version fixes CVE-2025-6023?
Is github.com/grafana/grafana affected?
What is the CVSS score of CVE-2025-6023?
What CWE is associated with CVE-2025-6023?
How can I check Go dependencies for CVE-2025-6023?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vqph-p5vc-g644",
"modified" : "2025-07-20T16:35:49Z",
"published" : "2025-07-18T09:30:31Z",
"aliases" : [ "CVE-2025-6023" ],
"summary" : "Grafana is vulnerable to XSS attacks through open redirects and path traversal",
"details" : "An open redirect vulnerability has been identified in Grafana OSS that can be exploited to achieve XSS attacks. The vulnerability was introduced in Grafana v11.5.0.\n\nThe open redirect can be chained with path traversal vulnerabilities to achieve XSS.\n\nFixed in versions 12.0.2+security-01, 11.6.3+security-01, 11.5.6+security-01, 11.4.6+security-01 and 11.3.8+security-01",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/grafana/grafana"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.9.2-0.20250521205822-0ba0b99665a9"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-6023"
}, {
"type" : "WEB",
"url" : "https://github.com/grafana/grafana/commit/0ba0b99665a946cd96676ef85ec8bc83028cb1d7"
}, {
"type" : "WEB",
"url" : "https://github.com/grafana/grafana/commit/40ed88fe86d347bcde5ddaed6c4a20a95d2f0d55"
}, {
"type" : "WEB",
"url" : "https://github.com/grafana/grafana/commit/5b00e21638f565eed46acb4d0b7c009968df4c3b"
}, {
"type" : "WEB",
"url" : "https://github.com/grafana/grafana/commit/b6dd2b70c655c61b111b328f1a7dcca6b3954936"
}, {
"type" : "WEB",
"url" : "https://github.com/grafana/grafana/commit/e0ba4b480954f8a33aa2cff3229f6bcc05777bd9"
}, {
"type" : "WEB",
"url" : "https://github.com/grafana/grafana"
}, {
"type" : "WEB",
"url" : "https://grafana.com/blog/2025/07/17/grafana-security-release-medium-and-high-severity-fixes-for-cve-2025-6197-and-cve-2025-6023"
}, {
"type" : "WEB",
"url" : "https://grafana.com/security/security-advisories/cve-2025-6023"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-20T16:35:49Z",
"nvd_published_at" : "2025-07-18T08:15:28Z"
}
}