nday
CVE-2021-41174 GHSA-3j9m-hcv9-rpj8

XSS vulnerability allowing arbitrary JavaScript execution

grafana / grafana

Disclosed . nday has no fix record for it yet; that does not mean no patch exists. Listed by 1 of 4 PoC sources: nuclei. Not in CISA KEV.

tags weakness typeXSS accessnetworkno authentication required exploitationnuclei productGrafana product typemonitoring / logging / IT management
why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

XSS
CWE-79, stated by the CNA GitHub_M, NVD's analysts, and NVD, republishing [email protected]
network
AV:N in CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:N (CVSS 3.1) from the CNA GitHub_M
no authentication required
PR:N in CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:N (CVSS 3.1) from the CNA GitHub_M
nuclei
nuclei templates CVE-2021-41174
Grafana
affected products in the CVE record: grafana · grafanaCPE names NVD's analysts give as vulnerable: a:grafana:grafana
monitoring / logging / IT management
affected products in the CVE record: grafana · grafanaCPE names NVD's analysts give as vulnerable: a:grafana:grafanathe product type of Grafana in nday's product registry
stage
POC
disclosed
cvss
6.9 MEDIUM v3.1

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2021-11-03T18:00Z
PATpatch
no record yet
ANAanalysis
no record yet
POCPoC
nuclei
ITWexploited
no record yet
KEVKEV
no record yet

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:H
High: success depends on conditions outside the attacker's control, such as gathering details of the target or winning a race
Privileges required PR:N
None: no account or authorization needed
User interaction UI:R
Required: a user must do something, such as open a file or click a link

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:N

CVSS 3.1 vector from the CVE record, scored by the CNA GitHub_M.

Event log

+DISdisclosed

CVE record published by GitHub_M. CVSS 6.9, medium.

src cvelist · nday , bulk import · raw
{
  "id": 63416,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2021-41174",
  "occurred_at": "2021-11-03T18:00:12Z",
  "observed_at": "2026-11-12T20:03:12.555163Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:N",
      "version": "3.1",
      "base_score": 6.9,
      "base_severity": "MEDIUM"
    },
    "state": "PUBLISHED",
    "date_published": "2021-11-03T18:00:12.000Z",
    "assigner_short_name": "GitHub_M"
  }
}
time unknownsource gave no time
+POCpublic PoC

Nuclei has detection template CVE-2021-41174 (Grafana 8.0.0 <= v.8.2.2 - Angularjs Rendering Cross-Site Scripting). The source gives no release time for the template.

src nuclei · nday , bulk import · raw
{
  "id": 54763,
  "type": "poc_published",
  "source": "nuclei",
  "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-41174.yaml",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:53.738369Z",
  "is_backfill": true,
  "dedupe_key": "CVE-2021-41174",
  "detail": {
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-41174.yaml",
    "kind": "detection_template",
    "title": "Grafana 8.0.0 <= v.8.2.2 - Angularjs Rendering Cross-Site Scripting",
    "severity": "medium",
    "confidence": "curated",
    "cvss_score": "6.1",
    "template_id": "CVE-2021-41174",
    "template_path": "http/cves/2021/CVE-2021-41174.yaml"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.