CVE-2018-18624 Grafana XSS via a column style

Medium 6.1 Published Updated

An attacker can execute arbitrary scripts in Grafana via a column style in the Table Panel, potentially leading to session hijacking or data theft.

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-18624?

CVE-2018-18624 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 column style on the "Dashboard > Table Panel" screen. NOTE: this issue exists because of an incomplete fix for CVE-2018-12099.

Weakness: CWE-79

Which versions are affected by CVE-2018-18624?

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

PackageAffectedFixed in
github.com/grafana/grafana GoAll versionsNone
github.com/grafana/grafana GoAll versions7.0.0
github.com/grafana/grafana GoAll versions7.0.0

Products include Grafana Grafana.

How do I fix CVE-2018-18624?

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

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

All Grafana Grafana vulnerabilities

Sources

Also known as GHSA-9hv8-4frf-cprf, GO-2024-2516, MINI-638w-p673-p59x, MINI-63mr-cmc9-x272, MINI-8m8m-55f5-8pqj, MINI-93q3-wqv8-h343 and 14 more.

Is CVE-2018-18624 in your software?

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

Check your SBOMs for free