CVE-2023-1410 Stored XSS in Graphite FunctionDescription tooltip

Medium 6.2 Published Updated

Attackers with Graphite data source control can inject scripts via function descriptions, leading to XSS when users hover over tooltips.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-1410?

CVE-2023-1410 is a medium-severity cross-site scripting vulnerability in Grafana Grafana, published on 23 Mar 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

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

Weakness: CWE-79

Which versions are affected by CVE-2023-1410?

9 open source packages ship an affected version, including github.com/grafana/grafana and grafana. It affects 1 product.

PackageAffectedFixed in
github.com/grafana/grafana GoFrom 8.0.08.5.22
github.com/grafana/grafana GoFrom 8.0.08.5.22
github.com/grafana/grafana GoFrom 9.0.09.2.15
github.com/grafana/grafana GoFrom 9.0.09.2.15
github.com/grafana/grafana GoFrom 9.3.09.3.11
github.com/grafana/grafana GoFrom 9.3.09.3.11
3 more packages
github.com/grafana/grafana GoFrom 9.4.09.4.7
github.com/grafana/grafana GoFrom 9.4.09.4.7
grafana BitnamiFrom 8.0.08.5.22, 9.2.15, 9.3.11
Linux distribution packages (1)
grafana openSUSE:TumbleweedAll versions9.4.7-1.1

Products include Grafana Grafana.

How do I fix CVE-2023-1410?

Upgrade github.com/grafana/grafana to a fixed version for your release line: 8.5.22, 9.2.15, 9.3.11 or 9.4.7.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2023-1410 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-1410 exists.

All Grafana Grafana vulnerabilities

Sources

Also known as BIT-grafana-2023-1410, GHSA-qrrg-gw7w-vp76, UBUNTU-CVE-2023-1410, openSUSE-SU-2024:12855-1.

Is CVE-2023-1410 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free