{"id":"UBUNTU-CVE-2022-31097","details":"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.","modified":"2025-10-24T04:53:40Z","published":"2022-07-15T12:15:00Z","upstream":["CVE-2022-31097"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-31097"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-31097"}],"affected":[{"package":{"name":"grafana","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/grafana@2.6.0+dfsg-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.0+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.6.0+dfsg-1","binary_name":"grafana"},{"binary_version":"2.6.0+dfsg-1","binary_name":"grafana-data"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31097.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}