CVE-2021-41174

Summary

CVECVE-2021-41174
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-11-03 18:15:00 UTC
Updated2021-11-29 17:13:00 UTC
DescriptionGrafana 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.

Risk And Classification

Problem Types: CWE-79

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Grafana Grafana All All All All

References

ReferenceSourceLinkTags
Merge pull request #146 from grafana/oscark/sanitize-nav-links · grafana/grafana@31b78d5 · GitHub MISC github.com
Merge pull request #151 from grafana/dcech/sanitize-replaceAll · grafana/grafana@3cb5214 · GitHub MISC github.com
Merge pull request #147 from grafana/axelav/sanitized-nav-links-8-2-3 · grafana/grafana@fb85ed6 · GitHub MISC github.com
XSS vulnerability allowing arbitrary JavaScript execution · Advisory · grafana/grafana · GitHub CONFIRM github.com
CVE-2021-41174 Grafana Vulnerability in NetApp Products | NetApp Product Security CONFIRM security.netapp.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 690739 Free Berkeley Software Distribution (FreeBSD) Security Update for grafana (4b478274-47a0-11ec-bd24-6c3be5272acd)
  • 730253 Grafana Enterprise Cross-Site Scripting (XSS) Vulnerability
  • 752251 SUSE Enterprise Linux Security Update for SUSE Manager Client Tools (SUSE-SU-2022:2134-1)
  • 752995 SUSE Enterprise Linux Security Update for grafana (SUSE-SU-2022:4428-1)
  • 980006 Nodejs (npm) Security Update for @grafana/data (GHSA-3j9m-hcv9-rpj8)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report