CVE-2020-13430 Grafana XSS via the OpenTSDB datasource
An attacker can execute arbitrary scripts in Grafana via the OpenTSDB datasource, potentially compromising user sessions and data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-13430?
CVE-2020-13430 is a medium-severity cross-site scripting vulnerability in Grafana Grafana, published on 24 May 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Grafana before 7.0.0 allows tag value XSS via the OpenTSDB datasource.
Weakness: CWE-79
Which versions are affected by CVE-2020-13430?
4 open source packages ship an affected version, including github.com/grafana/grafana and grafana. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/grafana/grafana Go | All versions | None |
github.com/grafana/grafana Go | All versions | 7.0.0 |
github.com/grafana/grafana Go | All versions | 7.0.0 |
grafana Bitnami | All versions | 7.0.0 |
Products include Grafana Grafana.
How do I fix CVE-2020-13430?
Upgrade github.com/grafana/grafana to 7.0.0 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-13430 being exploited?
There is no known exploitation of CVE-2020-13430 in the wild and no public exploit code.
Other vulnerabilities in Grafana Grafana
Sources
Also known as BIT-grafana-2020-13430, GHSA-7m2x-qhrq-rp8h, GO-2024-2515, MINI-2fpr-jcfv-vc35, MINI-67h3-v733-w39q, MINI-6rr6-8287-6mjf and 15 more.