CVE-2021-41174
A public proof of concept exists; no exploitation attested.
- Published2021-11-03
- Fixed in8.2.3
- WeaknessCWE-79
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2021-11-0318:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 8.x | ≥ 8.0.0, < 8.2.3 | 8.2.3 | NVD · OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
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
- ansibleSUSE:Manager Client Tools 15-BETAall versions · fixed in 2.9.27-159000.3.9.1
- dracut-saltbootSUSE:Manager Client Tools for SLE Micro 5all versions · fixed in 0.1.1665997480.587fa10-150000.1.41.1
- dracut-saltbootSUSE:Manager Client Tools Beta for SLE Micro 5all versions · fixed in 0.1.1681904360.84ef141-159000.3.30.1
- dracut-saltbootSUSE:Manager Client Tools 15-BETAall versions · fixed in 0.1.1681904360.84ef141-159000.3.30.1
- dracut-saltbootSUSE:Manager Client Tools 15all versions · fixed in 0.1.1665997480.587fa10-150000.1.41.1
- dracut-saltbootopenSUSE:Leap 15.4all versions · fixed in 0.1.1665997480.587fa10-150000.1.41.1
- dracut-saltbootopenSUSE:Leap 15.3all versions · fixed in 0.1.1665997480.587fa10-150000.1.41.1
- golang-github-boynux-squid_exporterSUSE:Manager Proxy Module 4.3all versions · fixed in 1.6-150000.1.9.1
122 more package ranges on OSV.dev
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 · +5 more
Fix
- Update Grafana to 8.2.3
- No fix available, says the vendor Red Hat Product Security CVE-2021-41174 · 2 productsAffected
- No fix planned, says the vendor Red Hat Product Security CVE-2021-41174 · 5 productsOut of support scope
- No fix planned, says the vendor Red Hat Product Security CVE-2021-41174 · 1 productWill not fix
Advisories and patches
- github.comPatch
- github.comPatch
- github.comPatch
Detection
read 2026-12-01 11:37 UTC- Nuclei template
- available ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-12-01
- Metasploit modules
- none listed Metasploit Framework
Sources
- CNACVSS 3.16.9known since 2026-10-23
- NVDCVSS 3.16.1read 2026-10-23
- NVDCVSS 2.04.3read 2026-10-23
- CNAweakness (CWE)CWE-79known since 2026-10-23
- NVDweakness (CWE)CWE-79read 2026-10-23
- FIRST EPSSEPSS score85.4 %read 2026-12-01
- ProjectDiscoverydetectionread 2026-12-01
- OSVaffected packages—
- GitHub AdvisoriesadvisoryModerate2021-11-03
Identifiers
- BIT-grafana-2021-41174same flawBitnami · Apache-2.0
- EUVD-2021-2285same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-3j9m-hcv9-rpj8same flawGitHub Advisory Database · CC-BY-4.0
- openSUSE-SU-2024:11816-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- SUSE-FU-2022:1419-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:1396-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:2134-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:3676-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:4428-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:4437-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:4439-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2024:0191-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2024:0196-1advisory covering several CVEsSUSE · LicenseRef-unstated
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Published
- 2021-11-03
- Last modified
- 2026-06-17
- NVD status
- Modified
- GitHub advisory
- GHSA-3j9m-hcv9-rpj8
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
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-3j9m-hcv9-rpj8
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0