CVE-2018-18625 Grafana XSS via adding a link in General feature
An attacker can execute arbitrary scripts in Grafana via a malicious link on the dashboard screen, 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-2018-18625?
CVE-2018-18625 is a medium-severity cross-site scripting vulnerability in Grafana Grafana, published on 2 Jun 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 5.3.1 has XSS via a link on the "Dashboard > All Panels > General" screen. NOTE: this issue exists because of an incomplete fix for CVE-2018-12099.
Weakness: CWE-79
Which versions are affected by CVE-2018-18625?
3 open source packages ship an affected version, including github.com/grafana/grafana. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/grafana/grafana Go | All versions | 6.0.0-beta1 |
github.com/grafana/grafana Go | All versions | 6.0.0-beta1 |
github.com/grafana/grafana Go | All versions | 6.0.0-beta1+incompatible |
Products include Grafana Grafana.
How do I fix CVE-2018-18625?
Upgrade github.com/grafana/grafana to a fixed version for your release line: 6.0.0-beta1 or 6.0.0-beta1+incompatible.
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-18625 being exploited?
There is no known exploitation of CVE-2018-18625 in the wild and no public exploit code.
Other vulnerabilities in Grafana Grafana
Sources
Also known as GHSA-6wh2-8hw7-jw94, GO-2024-2483, UBUNTU-CVE-2018-18625.