CVE-2021-41174
Summary
| CVE | CVE-2021-41174 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-11-03 18:15:00 UTC |
| Updated | 2021-11-29 17:13:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-79
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| 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 |
No vendor comments have been submitted for this CVE.
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)