CVE-2018-12099 Grafana Cross-site Scripting (XSS)

Medium 6.1 Published Updated

Attackers can inject malicious scripts into Grafana dashboard links, potentially executing code or hijacking 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-12099?

CVE-2018-12099 is a medium-severity cross-site scripting vulnerability in Grafana Grafana, published on 11 Jun 2018. 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 5.2.0-beta1 has XSS vulnerabilities in dashboard links.

Weakness: CWE-79

Which versions are affected by CVE-2018-12099?

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

PackageAffectedFixed in
github.com/grafana/grafana GoAll versions5.2.0-beta1
github.com/grafana/grafana GoAll versions5.2.0-beta1
github.com/grafana/grafana GoAll versions5.2.0-beta1+incompatible

Products include Grafana Grafana, Netapp Active Iq Performance Analytics Services, Netapp Storagegrid Webscale Nas Bridge.

How do I fix CVE-2018-12099?

Upgrade github.com/grafana/grafana to a fixed version for your release line: 5.2.0-beta1 or 5.2.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-12099 being exploited?

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

All Grafana Grafana vulnerabilities

Sources

Also known as GHSA-v5gq-qvjq-8p53, GO-2024-2510, UBUNTU-CVE-2018-12099.

Is CVE-2018-12099 in your software?

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

Check your SBOMs for free