CVE-2018-1000816 Grafana XSS Vulnerability

Medium 5.4 Published Updated

An authenticated user can execute arbitrary JavaScript in a victim's browser via the Influxdb and Graphite query editor in Grafana.

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

What is CVE-2018-1000816?

CVE-2018-1000816 is a medium-severity cross-site scripting vulnerability in Grafana Grafana, published on 20 Dec 2018. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Grafana version confirmed for 5.2.4 and 5.3.0 contains a Cross Site Scripting (XSS) vulnerability in Influxdb and Graphite query editor that can result in Running arbitrary js code in victims browser.. This attack appear to be exploitable via Authenticated user must click on the input field where the payload was previously inserted..

Weakness: CWE-79

Which versions are affected by CVE-2018-1000816?

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

PackageAffectedFixed in
github.com/grafana/grafana GoAll versions5.3.2
github.com/grafana/grafana GoAll versions5.3.2

Products include Grafana Grafana.

How do I fix CVE-2018-1000816?

Upgrade github.com/grafana/grafana to 5.3.2 or later.

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-2018-1000816 being exploited?

There is no known exploitation of CVE-2018-1000816 in the wild and no public exploit code.

All Grafana Grafana vulnerabilities

Sources

Also known as GHSA-x5fh-fvvr-892f, UBUNTU-CVE-2018-1000816.

Is CVE-2018-1000816 in your software?

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

Check your SBOMs for free