CVE-2018-18623 Grafana XSS in Dashboard Text Panel

Medium 6.1 Published Updated

An attacker can execute arbitrary scripts in Grafana via the Text 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-18623?

CVE-2018-18623 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 the "Dashboard > Text 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-18623?

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

PackageAffectedFixed in
github.com/grafana/grafana GoAll versions6.0.0-beta1
github.com/grafana/grafana GoAll versions6.0.0-beta1
github.com/grafana/grafana GoAll versions6.0.0-beta1+incompatible

Products include Grafana Grafana.

How do I fix CVE-2018-18623?

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-18623 being exploited?

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

All Grafana Grafana vulnerabilities

Sources

Also known as GHSA-cmq2-j8v8-2q44, GO-2022-0342, UBUNTU-CVE-2018-18623.

Is CVE-2018-18623 in your software?

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

Check your SBOMs for free