CVE-2020-24303: Grafana XSS via a query alias for the ElasticSearch datasource
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.73341%
CWE
Published
5/24/2022
Updated
8/7/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/grafana/grafana | go | < 7.1.0-beta1 | 7.1.0-beta1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from unvalidated/unescaped user input in query alias fields being processed by AngularJS templates. The bs-typeahead directive's handling of options array allowed JS execution. The patch (#25401) specifically added validation to these alias fields and escaping during rendering. The CHANGELOG and commit messages confirm these were the vulnerable areas.