Read the docs
TI-2021-18013 Aliases CVE-2021-41174GHSA-3j9m-hcv9-rpj8

XSS vulnerability allowing arbitrary JavaScript execution

Priority HIGH 72CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
High
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · High · None
Fix status
Partial Red Hat: 4 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.

Summary

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.

Why it matters now

EPSS 0.85404 99th percentileScored 2026-11-07
Fix Partial grafana (grafana): 8.2.3@grafana/data (npm): 8.2.3Red Hat: 4 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
Grafanagrafana8.0.0 to before 8.2.38.2.3Patch availableCNA
—@grafana/data (npm)8.0.0 to before 8.2.38.2.3Patch availableGHSA-3j9m-hcv9-rpj8
  • grafana VendorGrafana Affected 8.0.0 to before 8.2.3 Fixed in 8.2.3 Patch available CNA
  • @grafana/data (npm) Vendor— Affected 8.0.0 to before 8.2.3 Fixed in 8.2.3 Patch available GHSA-3j9m-hcv9-rpj8

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*8.0.0 to before 8.2.3VulnerableGrafana
  • cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:* Versions 8.0.0 to before 8.2.3 Vulnerable ·Grafana

Remediation

  • Fix · CNA grafana (grafana) Fixed in 8.2.3
  • Fix · GHSA-3j9m-hcv9-rpj8 @grafana/data (npm) Fixed in 8.2.3 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
OpenShift Service Mesh 2.1AffectedNo fix yet
Red Hat Advanced Cluster Management for Kubernetes 2AffectedNo fix planned: Will not fix
Red Hat Ceph Storage 2AffectedNo fix planned: Out of support scope
Red Hat Ceph Storage 3AffectedNo fix planned: Out of support scope
Not affected: 8 products
  • OpenShift Service Mesh 2.0
  • Red Hat Ceph Storage 4
  • Red Hat Ceph Storage 5
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • Red Hat OpenShift Container Platform 3.11
  • Red Hat OpenShift Container Platform 4
  • Red Hat Storage 3

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-41174
  2. 2026-10-03 Alias added: GHSA-3j9m-hcv9-rpj8

References

  • TI-2021-16611 Snapshot authentication bypass in grafana KEVCVSS 3.1CRITICAL 9.8
  • TI-2021-19604 Grafana path traversal KEVCVSS 3.1HIGH 7.5
  • TI-2024-08600 Grafana SQL Expressions allow for remote code execution CVSS 4.0CRITICAL 9.4
  • TI-2023-02931 Authentication bypass by spoofing in Grafana CVSS 3.1CRITICAL 9.8
  • TI-2020-10491 The avatar feature in Grafana 3.0.1 through 7.0.1 has an SSRF Incorrect Access Control… CVSS 3.1HIGH 8.2
  • TI-2025-03662 Open redirect in Grafana CVSS 3.1HIGH 7.6
See all 103 →

Sources