#VU64397 Cross-site scripting in Grafana


Published: 2022-06-15 | Updated: 2022-06-16

Vulnerability identifier: #VU64397

Vulnerability risk: Low

CVSSv3.1: 5.3 [CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-21702

CWE-ID: CWE-79

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Grafana
Web applications / Other software

Vendor: Grafana Labs

Description

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to insufficient sanitization of user-supplied data in Grafana. A remote attacker can trick the victim to visit a specially crafted link, execute arbitrary HTML code, and perform a Cross-site scripting (XSS) attack.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Grafana: 8.3.0 - 8.3.4, 8.2.0 - 8.2.7, 8.1.0 - 8.1.8, 8.0.0 - 8.0.7, 7.5.0 - 7.5.13, 7.3.0 - 7.3.10, 7.4.0 - 7.4.5, 7.2.0 - 7.2.3, 7.1.0 - 7.1.5, 7.0.0 - 7.0.6, 6.7.0 - 6.7.6, 6.6.0 - 6.6.2, 6.5 - 6.5.3, 6.4.0 - 6.4.5, 6.3.0 - 6.3.7, 6.2.0 - 6.2.5, 6.1.0 - 6.1.6, 6.0.0 - 6.0.2, 5.4.0 - 5.4.5, 5.3.0 - 5.3.4, 5.2.0 - 5.2.5, 5.1.0 - 5.1.5, 5.0.0 - 5.0.4, 4.6.0 - 4.6.5, 4.5.0 - 4.5.2, 4.3.0 - 4.3.2, 4.2.0 - 4.2.0 beta1, 4.1.0 - 4.1.2, 4.0.0 - 4.0.2, 4.4.0 - 4.4.3, 3.1.0 - 3.1.1, 3.0 beta1 - 3.0.4, 2.0.0 - 2.0.2, 2.6.0 - 2.6.0 beta1, 2.5.0, 2.1.0 - 2.1.3


External links
http://github.com/grafana/grafana/security/advisories/GHSA-xc3p-28hw-q24g
http://grafana.com/blog/2022/02/08/grafana-7.5.15-and-8.3.5-released-with-moderate-severity-security-fixes/
http://github.com/grafana/grafana/commit/27726868b3d7c613844b55cd209ca93645c99b85
http://bugzilla.redhat.com/show_bug.cgi?id=2050648


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability