CVE-2025-41117: Github.com/grafana/grafana Cross-Site Scripting Vulnerability
MODERATECVE-2025-41117 is a MODERATE (CVSS 6.8) 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 has a cross-site scripting issue. Remediation is available by upgrading affected packages to version 12.2.5, 12.3.3.
CVE-2025-41117 at a Glance
Security Impact
CVSS: 6.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N).
How to Fix CVE-2025-41117
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 12.2.5
Upgrade github.com/grafana/grafana to 12.3.3
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-41117, 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 12.2.5), 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-41117 Affected Github.com/grafana/grafana Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/grafana/grafana
|
Go |
≥ 12.2.0
< 12.2.5
|
12.2.5
|
|
github.com/grafana/grafana
|
Go |
≥ 12.3.0
< 12.3.3
|
12.3.3
|
References
Frequently Asked Questions
What is CVE-2025-41117?
Which Github.com/grafana/grafana versions are affected?
What version fixes CVE-2025-41117?
Is github.com/grafana/grafana affected?
What is the CVSS score of CVE-2025-41117?
What CWE is associated with CVE-2025-41117?
How can I check Go dependencies for CVE-2025-41117?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cqp7-wf4c-3xgc",
"modified" : "2026-05-11T13:52:27Z",
"published" : "2026-02-12T09:30:59Z",
"aliases" : [ "CVE-2025-41117" ],
"summary" : "Grafana has a Cross-site Scripting issue",
"details" : "Stack traces in Grafana's Explore Traces view can be rendered as raw HTML, and thus inject malicious JavaScript in the browser. This would require malicious JavaScript to be entered into the stack trace field.\n\nOnly datasources with the Jaeger HTTP API appear to be affected; Jaeger gRPC and Tempo do not appear affected whatsoever.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/grafana/grafana"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "12.2.0"
}, {
"fixed" : "12.2.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/grafana/grafana"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "12.3.0"
}, {
"fixed" : "12.3.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-41117"
}, {
"type" : "WEB",
"url" : "https://github.com/grafana/grafana/commit/4f624a5a01404da45d60063ae1ee2f184818cd42"
}, {
"type" : "WEB",
"url" : "https://github.com/grafana/grafana/commit/8dfa6446942873d76cd94c63a2d6b71a25e880da"
}, {
"type" : "WEB",
"url" : "https://github.com/grafana/grafana/commit/ecff0d88680cea4ad32709cb3b94b790a7f58d25"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/grafana/grafana"
}, {
"type" : "WEB",
"url" : "https://grafana.com/security/security-advisories/CVE-2025-41117"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-11T13:52:26Z",
"nvd_published_at" : "2026-02-12T09:16:07Z"
}
}