CVE-2021-41174Grafana XSS
XSS vulnerability allowing arbitrary JavaScript execution
Published Nov 3, 2021 · Updated Oct 20, 2026 · Also known as BIT-grafana-2021-41174, GHSA-3j9m-hcv9-rpj8, UBUNTU-CVE-2021-41174
Key Facts
Patch immediately- CVE-2021-41174 is a medium-severity vulnerability (CVSS 6.1 v3.1) affecting Grafana, @grafana/data (npm), dracut-saltboot (suse) and 22 more products.
- It is exploited in the wild, listed in Industry KEV feed since May 31, 2022. No public exploit code is known.
- EPSS estimates a 85% probability of exploitation in the next 30 days.
- Fixed versions are available, including @grafana/data 8.2.3, /dashboard/snapshot, grafana/public/app/angular/AngularApp.ts 8.2.3, ansible 2.9.27-159000.3.9.1.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v3.1
6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS (30-day exploit likelihood)
85%
Higher than 99.8% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
61/100
Publication score, see How it works
Exploitation Verdict
KEV listed
May 31, 2022
209 days after publication
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
0
Proof-of-concept links
In-the-wild evidence
1
Reports of active use
Advisories And Exploit References
Description
Grafana is an open-source platform for monitoring and observability. In affected versions if an attacker is able to convince a victim to visit a URL referencing a vulnerable page, arbitrary JavaScript content may be executed within the context of the victim's browser. The user visiting the malicious link must be unauthenticated and the link must be for a page that contains the login button in the menu bar.
The url has to be crafted to exploit AngularJS rendering and contain the interpolation binding for AngularJS expressions. AngularJS uses double curly braces for interpolation binding: {{ }} ex: {{constructor.constructor(‘alert(1)’)()}}. When the user follows the link and the page renders, the login button will contain the original link with a query parameter to force a redirect to the login page.
The URL is not validated and the AngularJS rendering engine will execute the JavaScript expression contained in the URL. Users are advised to upgrade as soon as possible. If for some reason you cannot upgrade, you can use a reverse proxy or similar to block access to block the literal string {{ in the path.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| Industry KEV feed | May 31, 2022 | n/a | Not reported |
Affected Products
297 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| GrafanaGrafana | >= 8.0.0, >= 8.0.0, < 8.2.3 | 8.2.3 |
| @grafana/datanpm | >= 8.0.0 | 8.2.3 |
| dracut-saltbootsuse | See advisory | 0.1.1665997480.587fa10-150000.1.41.1 |
| golang-github-boynux-squid_exportersuse | See advisory | 1.6-150000.1.9.1 |
| golang-github-prometheus-promususe | See advisory | 0.13.0-150000.3.9.1 |
Patched Releases
@grafana/data
8.2.3
/dashboard/snapshot, grafana/public/app/angular/AngularApp.ts
8.2.3
ansible
2.9.27-159000.3.9.1
ansible-doc
2.9.27-159000.3.9.1
dracut-saltboot
0.1.1665997480.587fa10-150000.1.41.1, 0.1.1681904360.84ef141-159000.3.30.1
firewalld-prometheus-config
0.1-159000.6.33.1
golang-github-boynux-squid_exporter
1.6-1.9.1, 1.6-150000.1.9.1, 1.6-159000.4.9.1, 1.6-4.9.2
golang-github-lusitaniae-apache_exporter
1.0.0-159000.4.12.1, 1.0.0-4.12.4
golang-github-prometheus-alertmanager
0.23.0-1.12.3, 0.26.0-4.12.4
golang-github-prometheus-node_exporter
1.3.0-1.15.3, 1.5.0-4.15.4
golang-github-prometheus-prometheus
2.45.0-159000.6.33.1, 2.45.0-4.33.3
golang-github-prometheus-promu
0.13.0-150000.3.9.1, 0.14.0-4.12.2
golang-github-QubitProducts-exporter_exporter
0.4.0-1.6.1, 0.4.0-159000.4.6.1, 0.4.0-4.6.2
Grafana
8.2.3, 8.2.3-1, 8.3.4-1.1, 8.3.5-1.30.3, 8.3.5-150000.1.30.1, 8.3.5-150200.3.21.1, 8.5.13-1.36.2, 8.5.13-150000.1.36.3, 8.5.13-150100.3.12.1, 8.5.13-150200.3.29.5, 9.5.8-159000.4.24.1, 9.5.8-4.21.2
grafana/grafana
8.2.3
kiwi-desc-saltboot
0.1.1687520761.cefb248-4.15.2
mgr-cfg
4.2.8-150000.1.24.1, 4.3.6-1.27.4
mgr-cfg-actions
4.2.8-150000.1.24.1, 4.3.6-1.27.4
mgr-cfg-client
4.2.8-150000.1.24.1, 4.3.6-1.27.4
mgr-cfg-management
4.2.8-150000.1.24.1, 4.3.6-1.27.4
mgr-custom-info
4.3.3-1.18.1
mgr-daemon
4.3.4-1.32.3
mgr-osad
4.2.8-150000.1.36.1, 4.3.6-1.39.4
mgr-push
4.2.5-150000.1.18.2, 4.3.4-1.21.4, 5.0.1-159000.4.21.1, 5.0.1-4.21.4
mgr-virtualization
4.2.4-150000.1.26.1, 4.3.5-1.29.3
Timeline
Publicly disclosed
Nov 3, 2021
Added to Industry KEV feed
May 31, 2022
Last updated
Oct 20, 2026
Weakness Type
- CWE-79 Improper Neutralization of Input During Web Page Generation
- CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
References
- advisorynvd.nist.gov · CVE-2021-41174
- advisoryubuntu.com · CVE-2021-41174
- advisorycve.org · CVERecord
- advisorybugzilla.suse.com · 1047218
- advisorybugzilla.suse.com · 1172110
FAQ
Common Questions.
Grafana is an open-source platform for monitoring and observability.
Affected: Grafana versions >= 8.0.0, >= 8.0.0, < 8.2.3; @grafana/data (npm) versions >= 8.0.0; dracut-saltboot (suse), among others. The full list is in the CVE brief.
It is exploited in the wild, listed in Industry KEV feed since May 31, 2022.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including @grafana/data 8.2.3, /dashboard/snapshot, grafana/public/app/angular/AngularApp.ts 8.2.3, ansible 2.9.27-159000.3.9.1.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2021-41174 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo