Stored XSS in Graphite FunctionDescription tooltip
Description
Grafana is an open-source platform for monitoring and observability.
Grafana had a stored XSS vulnerability in the Graphite FunctionDescription tooltip.
The stored XSS vulnerability was possible due the value of the Function Description was not properly sanitized.
An attacker needs to have control over the Graphite data source in order to manipulate a function description and a Grafana admin needs to configure the data source, later a Grafana user needs to select a tampered function and hover over the description.
Users may upgrade to version 8.5.22, 9.2.15 and 9.3.11 to receive a fix.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/grafana/grafanaGo | >= 8.0.0, < 8.5.22 | 8.5.22 |
github.com/grafana/grafanaGo | >= 9.3.0, < 9.3.11 | 9.3.11 |
github.com/grafana/grafanaGo | >= 9.4.0, < 9.4.7 | 9.4.7 |
github.com/grafana/grafanaGo | >= 9.0.0, < 9.2.15 | 9.2.15 |
Affected products
2- Grafana/Grafana Enterprisev5Range: 8.0.0
Patches
4e59427c0747a[v9.2.x] Fix xss in Graphite functions tooltip (#810)
1 file changed · +1 −3
public/app/plugins/datasource/graphite/components/FunctionEditorControls.tsx+1 −3 modified@@ -11,11 +11,9 @@ export interface FunctionEditorControlsProps { } const FunctionDescription = React.lazy(async () => { - // @ts-ignore - const { default: rst2html } = await import(/* webpackChunkName: "rst2html" */ 'rst2html'); return { default(props: { description?: string }) { - return <div dangerouslySetInnerHTML={{ __html: rst2html(props.description ?? '') }} />; + return <div>{props.description}</div>; }, }; });
42911348a76e[v8.5.x] Fix xss in Graphite functions tooltip (#808)
1 file changed · +1 −3
public/app/plugins/datasource/graphite/components/FunctionEditorControls.tsx+1 −3 modified@@ -11,11 +11,9 @@ export interface FunctionEditorControlsProps { } const FunctionDescription = React.lazy(async () => { - // @ts-ignore - const { default: rst2html } = await import(/* webpackChunkName: "rst2html" */ 'rst2html'); return { default(props: { description?: string }) { - return <div dangerouslySetInnerHTML={{ __html: rst2html(props.description ?? '') }} />; + return <div>{props.description}</div>; }, }; });
f9548d33f862[v9.3.x] Fix xss in Graphite functions tooltip (#806)
1 file changed · +1 −3
public/app/plugins/datasource/graphite/components/FunctionEditorControls.tsx+1 −3 modified@@ -11,11 +11,9 @@ export interface FunctionEditorControlsProps { } const FunctionDescription = React.lazy(async () => { - // @ts-ignore - const { default: rst2html } = await import(/* webpackChunkName: "rst2html" */ 'rst2html'); return { default(props: { description?: string }) { - return <div dangerouslySetInnerHTML={{ __html: rst2html(props.description ?? '') }} />; + return <div>{props.description}</div>; }, }; });
ef2eb2b6bf1d[v9.4.x] Fix xss in Graphite functions tooltip (#805)
1 file changed · +1 −3
public/app/plugins/datasource/graphite/components/FunctionEditorControls.tsx+1 −3 modified@@ -11,11 +11,9 @@ export interface FunctionEditorControlsProps { } const FunctionDescription = React.lazy(async () => { - // @ts-ignore - const { default: rst2html } = await import(/* webpackChunkName: "rst2html" */ 'rst2html'); return { default(props: { description?: string }) { - return <div dangerouslySetInnerHTML={{ __html: rst2html(props.description ?? '') }} />; + return <div>{props.description}</div>; }, }; });
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
10- github.com/advisories/GHSA-qrrg-gw7w-vp76ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-1410ghsaADVISORY
- github.com/grafana/bugbounty/security/advisories/GHSA-qrrg-gw7w-vp76ghsaWEB
- github.com/grafana/grafana/commit/42911348a76e8484396b951bef8b7bff97a84cbcghsaWEB
- github.com/grafana/grafana/commit/e59427c0747ae2f3feb1bfc3a4b87f0886208cc6ghsaWEB
- github.com/grafana/grafana/commit/ef2eb2b6bf1d7c0fb781e3e05d0d1aecd6dd438aghsaWEB
- github.com/grafana/grafana/commit/f9548d33f8624d6694983fe5aad181007405be8aghsaWEB
- grafana.com/security/security-advisories/cve-2023-1410ghsaWEB
- grafana.com/security/security-advisories/cve-2023-1410/mitre
- security.netapp.com/advisory/ntap-20230420-0003/mitre
News mentions
0No linked articles in our index yet.