8.7
CWE
79
Advisory Published
CVE Published
Advisory Published
Updated

CVE-2022-31097: Stored XSS in Grafana's Unified Alerting

First published: Wed Jul 06 2022(Updated: )

Grafana is an open-source platform for monitoring and observability. Versions on the 8.x and 9.x branch prior to 9.0.3, 8.5.9, 8.4.10, and 8.3.10 are vulnerable to stored cross-site scripting via the Unified Alerting feature of Grafana. An attacker can exploit this vulnerability to escalate privilege from editor to admin by tricking an authenticated admin to click on a link. Versions 9.0.3, 8.5.9, 8.4.10, and 8.3.10 contain a patch. As a workaround, it is possible to disable alerting or use legacy alerting.

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Grafana Grafana>=8.0.0<8.3.10
Grafana Grafana>=8.4.0<8.4.10
Grafana Grafana>=8.5.0<8.5.9
Grafana Grafana>=9.0.0<9.0.3
Netapp E-series Performance Analyzer
redhat/Grafana<9.0.3
9.0.3
redhat/Grafana<8.5.9
8.5.9
redhat/Grafana<8.4.10
8.4.10
redhat/Grafana<8.3.10
8.3.10
go/github.com/grafana/grafana>=8.0.0<8.3.10
8.3.10
go/github.com/grafana/grafana>=8.4.0<8.4.10
8.4.10
go/github.com/grafana/grafana>=8.5.0<8.5.9
8.5.9
go/github.com/grafana/grafana>=9.0.0<9.0.3
9.0.3

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2022-31097?

    CVE-2022-31097 is a vulnerability in Grafana that allows for stored cross-site scripting via the Unified Alerting feature.

  • Which versions of Grafana are affected by CVE-2022-31097?

    Versions on the 8.x and 9.x branch prior to 9.0.3, 8.5.9, 8.4.10, and 8.3.10 are affected by CVE-2022-31097.

  • What is the severity of CVE-2022-31097?

    The severity of CVE-2022-31097 is high with a CVSS score of 8.7.

  • How can an attacker exploit CVE-2022-31097?

    An attacker can exploit CVE-2022-31097 to escalate privileges and perform stored cross-site scripting attacks.

  • How can I mitigate CVE-2022-31097?

    To mitigate CVE-2022-31097, update Grafana to version 9.0.3, 8.5.9, 8.4.10, or 8.3.10 depending on the branch you are using.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203