CVE-2020-11110 Grafana stored XSS

Medium 5.4 Published Updated

Attackers can inject JavaScript into Grafana snapshots via the originalUrl field, leading to stored XSS execution when users view the snapshot.

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-2020-11110?

CVE-2020-11110 is a medium-severity cross-site scripting vulnerability in Grafana Grafana, published on 27 Jul 2020. 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 through 6.7.1 allows stored XSS due to insufficient input protection in the originalUrl field, which allows an attacker to inject JavaScript code that will be executed after clicking on Open Original Dashboard after visiting the snapshot.

Weakness: CWE-79

Which versions are affected by CVE-2020-11110?

4 open source packages ship an affected version, including github.com/grafana/grafana and grafana. It affects 2 products.

PackageAffectedFixed in
github.com/grafana/grafana GoAll versionsNone
github.com/grafana/grafana GoAll versions6.7.2
github.com/grafana/grafana GoAll versions6.7.2
grafana BitnamiAll versions6.7.2
Linux distribution packages (1)
grafana SUSE:Enterprise Storage 5All versions4.6.5-3.13.1

Products include Grafana Grafana, Netapp E-Series Performance Analyzer.

How do I fix CVE-2020-11110?

Upgrade github.com/grafana/grafana to 6.7.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-2020-11110 being exploited?

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

Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.

All Grafana Grafana vulnerabilities

Sources

Also known as BIT-grafana-2020-11110, GHSA-xr3x-62qw-vc4w, GO-2024-2523, MINI-2g8v-6x8v-3773, MINI-2gvg-x28q-ppm2, MINI-36mv-gpr3-c4cv and 16 more.

Is CVE-2020-11110 in your software?

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

Check your SBOMs for free