CVE-2021-41174
CVSS v3
6.1
MEDIUM
EPSS Score
85.4 %
exploit probability, as of 2026-10-15
CISA KEV
No
known exploited
Exploitation
—
SSVC status
Get an alert for each new CVE published for grafana. Watch grafana in CVE Watch Free account · no credit card
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- @grafana/datanpmfrom 8.0.0 · fixed in 8.2.3
- grafanaBitnamifrom 8.0.0 · fixed in 8.2.3
Vendor advisories
grafana: XSS vulnerability on unauthenticated pages through interpolation binding expressions for AngularJS in URL
servicemesh-grafana as a component of OpenShift Service Mesh 2.1 · servicemesh-grafana.src as a component of OpenShift Service Mesh 2.1 · grafana as a component of Red Hat Advanced Cluster Management for Kubernetes 2
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.
Technical details
- Published
- 2021-11-03
Frequently asked questions
What is CVE-2021-41174?
Is CVE-2021-41174 actively exploited?
What is the CVSS score for CVE-2021-41174?
Running grafana? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE WatchNo credit card required · 50 free checks/month · Free API key
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2021-39226KEVsame product
- CVE-2021-43798KEVsame product
- CVE-2020-13379same product
- CVE-2024-9264same product
- CVE-2025-4123same productgrafana: Cross-site Scripting (XSS) in Grafana via Custom Frontend Plugins and Open Redirect
- CVE-2025-6197same productgrafana: Open Redirect in Grafana
- CVE-2025-6023same product
- CVE-2022-26148same product