CVE-2021-41174
CVE-2021-41174 — XSS vulnerability allowing arbitrary JavaScript execution
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…
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
85%
chance of exploitation in 30 days
CVSS base
6.9
MEDIUM
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 6.9 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-79
References
5 on the record
- github.com/grafana/grafana/security/advisories/GHSA-3j9m-hcv9-rpj8
x_refsource_CONFIRM
- github.com/grafana/grafana/commit/31b78d51c693d828720a5b285107a50e6024c912
x_refsource_MISC
- github.com/grafana/grafana/commit/3cb5214fa45eb5a571fd70d6c6edf0d729983f82
x_refsource_MISC
- github.com/grafana/grafana/commit/fb85ed691290d211a5baa44d9a641ab137f0de88
x_refsource_MISC
- security.netapp.com/advisory/ntap-20211125-0003/
x_refsource_CONFIRM
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2021-39226 Snapshot authentication bypass in grafanaCVSS 7.3 · CISA KEV
- CVE-2021-43798 Grafana path traversalCVSS 5.0 · CISA KEV
- CVE-2026-27876 RCE on Grafana via sqlExpressionsCVSS 9.1
- CVE-2024-9264 Grafana SQL Expressions allow for remote code executionCVSS 8.8
- CVE-2025-4123 A cross-site scripting (XSS) vulnerability exists in Grafana caused by combining a client path traversal and open redirectCVSS 6.1
- CVE-2019-3929 Crestron Multiple Products Command Injection VulnerabilityCVSS 9.8 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.