Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/grafana/grafana
  4. ›
  5. CVE-2022-31097

CVE-2022-31097: Grafana Stored Cross-site Scripting in Unified Alerting

May 14, 2024 (updated November 18, 2024)

On June 19 a security researcher contacted Grafana Labs to disclose a XSS vulnerability in the Unified Alerting feature of Grafana. After analysis, this stored XSS could be used to elevate privileges from Editor to Admin.

We believe that this vulnerability is rated at CVSS 7.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N).

References

  • github.com/advisories/GHSA-vw7q-p2qg-4m5f
  • github.com/grafana/grafana
  • github.com/grafana/grafana/security/advisories/GHSA-vw7q-p2qg-4m5f
  • grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9
  • grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3
  • grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10
  • nvd.nist.gov/vuln/detail/CVE-2022-31097
  • security.netapp.com/advisory/ntap-20220901-0010

Code Behaviors & Features

Detect and mitigate CVE-2022-31097 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 8.0.0 before 8.3.10, all versions starting from 8.4.0 before 8.4.10, all versions starting from 8.5.0 before 8.5.9, all versions starting from 9.0.0 before 9.0.3

Fixed versions

  • 9.0.3
  • 8.5.9
  • 8.4.10
  • 8.3.10

Solution

Upgrade to versions 8.3.10, 8.4.10, 8.5.9, 9.0.3 or above.

Impact 8.7 HIGH

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

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

go/github.com/grafana/grafana/CVE-2022-31097.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:57 +0000.