CVE-2020-12245 Grafana XSS in header column rename
An attacker can execute arbitrary scripts in Grafana via malicious table panel titles or tooltips, potentially compromising user sessions.
- 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-12245?
CVE-2020-12245 is a medium-severity cross-site scripting vulnerability in Grafana Grafana, published on 24 Apr 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 6.7.3 allows table-panel XSS via column.title or cellLinkTooltip.
Weakness: CWE-79
Which versions are affected by CVE-2020-12245?
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 | 6.7.3 |
github.com/grafana/grafana Go | All versions | 6.7.3 |
grafana Bitnami | All versions | 6.7.3 |
Products include Grafana Grafana.
How do I fix CVE-2020-12245?
Upgrade github.com/grafana/grafana to 6.7.3 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-12245 being exploited?
There is no known exploitation of CVE-2020-12245 in the wild and no public exploit code.
Other vulnerabilities in Grafana Grafana
Sources
Also known as BIT-grafana-2020-12245, GHSA-ccmg-w4xm-p28v, GO-2024-2517, MINI-453f-49xw-p9h6, MINI-5gf7-c2rj-jq7h, MINI-653q-hr26-2vmv and 15 more.