Description
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.

Only datasources with the Jaeger HTTP API appear to be affected; Jaeger gRPC and Tempo do not appear affected whatsoever.
Published: 2026-02-12
Score: 6.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Cross‑Site Scripting via raw HTML rendering of stack traces
Action: Immediate Patch
AI Analysis

Impact

The vulnerability allows a malicious user to embed JavaScript into Grafana’s Explore Traces view by inserting script tags into the stack trace field. When the trace is rendered, the embedded JavaScript is executed in the viewing browser, potentially permitting cookie theft, session hijacking, or defacement. The weakness is a classic input validation flaw catalogued as CWE‑79.

Affected Systems

Grafana Grafana and Grafana Grafana‑Enterprise are affected. Known vulnerable releases include Grafana 12.2.4 and 12.3.2, as well as any miscellaneous builds matching the generic Grafana CPE. Only traces that originate from Jaeger HTTP API endpoints are susceptible; Jaeger gRPC and Tempo are unaffected.

Risk and Exploitability

The CVSS score of 6.8 indicates moderate severity. The EPSS score of less than 1% suggests a low probability of exploitation at the time of analysis, and the issue is not listed in CISA’s KEV catalog. The likely attack vector requires an attacker to inject malicious content into a Jaeger HTTP API trace, then have a user view that trace in Grafana. If the attacker controls the Jaeger source, this can be performed remotely through the Jaeger API, though it also poses risks to internal users viewing affected traces.

Generated by OpenCVE AI on April 20, 2026 at 15:56 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Grafana to a version that sanitizes stack trace rendering (e.g., Grafana 12.3.3 or later)
  • If an upgrade is not immediately possible, disable raw HTML rendering for stack traces through Grafana’s configuration or enforce a Content Security Policy that blocks inline scripting
  • Verify that the Jaeger HTTP API only accepts validated data; sanitize or strip script tags from stack trace content before storage

Generated by OpenCVE AI on April 20, 2026 at 15:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 23 Feb 2026 19:45:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:grafana:grafana:12.2.0:*:*:*:-:*:*:*
cpe:2.3:a:grafana:grafana:12.2.1:*:*:*:-:*:*:*
cpe:2.3:a:grafana:grafana:12.2.1:security01:*:*:*:*:*:*
cpe:2.3:a:grafana:grafana:12.2.2:*:*:*:-:*:*:*
cpe:2.3:a:grafana:grafana:12.2.3:*:*:*:-:*:*:*
cpe:2.3:a:grafana:grafana:12.2.3:security01:*:*:*:*:*:*
cpe:2.3:a:grafana:grafana:12.2.4:*:*:*:-:*:*:*
cpe:2.3:a:grafana:grafana:12.3.0:*:*:*:-:*:*:*
cpe:2.3:a:grafana:grafana:12.3.1:*:*:*:-:*:*:*
cpe:2.3:a:grafana:grafana:12.3.1:security01:*:*:*:*:*:*
cpe:2.3:a:grafana:grafana:12.3.2:*:*:*:-:*:*:*
cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*
cpe:2.3:a:grafana:grafana:12.2.4:-:*:*:*:*:*:*
cpe:2.3:a:grafana:grafana:12.3.2:-:*:*:*:*:*:*

Mon, 23 Feb 2026 19:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:grafana:grafana:12.2.1:security-01:*:*:*:*:*:*
cpe:2.3:a:grafana:grafana:12.2.3:security-01:*:*:*:*:*:*
cpe:2.3:a:grafana:grafana:12.2.4:security-01:*:*:*:*:*:*
cpe:2.3:a:grafana:grafana:12.3.1:security-01:*:*:*:*:*:*
cpe:2.3:a:grafana:grafana:12.3.2:security-01:*:*:*:*:*:*
cpe:2.3:a:grafana:grafana:12.2.1:security01:*:*:*:*:*:*
cpe:2.3:a:grafana:grafana:12.2.3:security01:*:*:*:*:*:*
cpe:2.3:a:grafana:grafana:12.3.1:security01:*:*:*:*:*:*

Mon, 23 Feb 2026 14:00:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:grafana:grafana:12.2.0:*:*:*:-:*:*:*
cpe:2.3:a:grafana:grafana:12.2.1:*:*:*:-:*:*:*
cpe:2.3:a:grafana:grafana:12.2.1:security-01:*:*:*:*:*:*
cpe:2.3:a:grafana:grafana:12.2.2:*:*:*:-:*:*:*
cpe:2.3:a:grafana:grafana:12.2.3:*:*:*:-:*:*:*
cpe:2.3:a:grafana:grafana:12.2.3:security-01:*:*:*:*:*:*
cpe:2.3:a:grafana:grafana:12.2.4:*:*:*:-:*:*:*
cpe:2.3:a:grafana:grafana:12.2.4:security-01:*:*:*:*:*:*
cpe:2.3:a:grafana:grafana:12.3.0:*:*:*:-:*:*:*
cpe:2.3:a:grafana:grafana:12.3.1:*:*:*:-:*:*:*
cpe:2.3:a:grafana:grafana:12.3.1:security-01:*:*:*:*:*:*
cpe:2.3:a:grafana:grafana:12.3.2:*:*:*:-:*:*:*
cpe:2.3:a:grafana:grafana:12.3.2:security-01:*:*:*:*:*:*

Fri, 13 Feb 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-79
References
Metrics threat_severity

None

threat_severity

Moderate


Thu, 12 Feb 2026 15:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 12 Feb 2026 13:30:00 +0000

Type Values Removed Values Added
References

Thu, 12 Feb 2026 11:30:00 +0000

Type Values Removed Values Added
First Time appeared Grafana
Grafana grafana
Grafana grafana Enterprise
Vendors & Products Grafana
Grafana grafana
Grafana grafana Enterprise

Thu, 12 Feb 2026 09:15:00 +0000

Type Values Removed Values Added
Description 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. Only datasources with the Jaeger HTTP API appear to be affected; Jaeger gRPC and Tempo do not appear affected whatsoever.
Title XSS in Grafana Explore stack trace
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N'}


Subscriptions

Grafana Grafana Grafana Enterprise
cve-icon MITRE

Status: PUBLISHED

Assigner: GRAFANA

Published:

Updated: 2026-04-15T19:25:10.125Z

Reserved: 2025-04-16T09:19:26.443Z

Link: CVE-2025-41117

cve-icon Vulnrichment

Updated: 2026-02-12T14:21:10.524Z

cve-icon NVD

Status : Modified

Published: 2026-02-12T09:16:07.630

Modified: 2026-02-26T22:20:42.667

Link: CVE-2025-41117

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-02-12T08:49:08Z

Links: CVE-2025-41117 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-20T16:00:10Z

Weaknesses