{"cve":"CVE-2021-41174","nvd":{"published":"2021-11-03T18:15:08.413","modified":"2026-06-17T04:08:01.500","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/grafana/grafana/commit/31b78d51c693d828720a5b285107a50e6024c912","https://github.com/grafana/grafana/commit/3cb5214fa45eb5a571fd70d6c6edf0d729983f82","https://github.com/grafana/grafana/commit/fb85ed691290d211a5baa44d9a641ab137f0de88","https://github.com/grafana/grafana/security/advisories/GHSA-3j9m-hcv9-rpj8","https://security.netapp.com/advisory/ntap-20211125-0003/"],"products":["grafana:grafana"],"source":"nvd","synced_at":"2026-10-19T21:24:39.218183596+00:00"},"epss":{"cve":"CVE-2021-41174","score":0.85404,"percentile":0.99719,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-3j9m-hcv9-rpj8","url":"https://osv.dev/vulnerability/GHSA-3j9m-hcv9-rpj8","summary":"XSS vulnerability allowing arbitrary JavaScript execution","modified":"2026-07-08T06:29:58.986490175Z","packages":[{"ecosystem":"npm","name":"@grafana/data","purl":"pkg:npm/%40grafana/data","ranges":[">=8.0.0 <8.2.3"],"fixed":["8.2.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}