Skip to main content
MEDIUM

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

  • CVE-2021-41174 Red Hat Product Security8 known affected

    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

Full record on NVD

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?

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.

Is CVE-2021-41174 actively exploited?

Active exploitation of CVE-2021-41174 has not been confirmed. Its EPSS score was 85.4% on 2026-10-15, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-41174?

CVE-2021-41174 has a CVSS v3 base score of 6.1 (MEDIUM severity).

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