Skip to main content
Public proof of conceptFix available

CVE-2021-41174

A public proof of concept exists; no exploitation attested.

  • Published2021-11-03
  • Fixed in8.2.3
  • WeaknessCWE-79

Am I 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
  1. 2021-11-0318:15CVE publishedNVD

Versions per branch

NVD · OSV
Grafana
BranchAffectedFixed in
8.x≥ 8.0.0, < 8.2.38.2.3

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

  • 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 · +5 more

Full record on NVD

Fix

  1. Update Grafana to 8.2.3
  2. No fix available, says the vendor Red Hat Product Security CVE-2021-41174 · 2 productsAffected
  3. No fix planned, says the vendor Red Hat Product Security CVE-2021-41174 · 5 productsOut of support scope
  4. No fix planned, says the vendor Red Hat Product Security CVE-2021-41174 · 1 productWill not fix

Advisories and patches

Detection

read 2026-12-01 11:37 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
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

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?

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-11-30, 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), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.

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

Sources for this record