{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-31097","id":"CVE-2022-31097","title":"Stored XSS in Grafana's Unified Alerting","description":"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,","descriptionLong":"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.","published":"2022-07-15T12:10:10.000Z","updated":"2026-10-28T02:30:37.523708772Z","reserved":"2022-05-18T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N","rating":"high","source":"GitHub"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":8.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["grafana"],"affectedProducts":[{"vendor":"grafana","product":"grafana","defaultStatus":null,"versions":[{"status":"affected","version":">= 9.0.0, < 9.0.3"},{"status":"affected","version":">= 8.5.0, < 8.5.9"},{"status":"affected","version":">= 8.4.0, < 8.4.10"},{"status":"affected","version":">= 8.0.0, < 8.3.10"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","ranges":[">=9.0.0 <9.0.3",">=8.5.0 <8.5.9",">=8.4.0 <8.4.10",">=8.0.0 <8.3.10","all versions"],"fixed":["9.0.3","8.5.9","8.4.10","8.3.10"],"advisory":"GHSA-vw7q-p2qg-4m5f"}],"cwes":["CWE-79"],"aliases":["BIT-grafana-2022-31097","GHSA-vw7q-p2qg-4m5f","GO-2024-2857"],"references":[{"url":"https://github.com/grafana/grafana/security/advisories/GHSA-vw7q-p2qg-4m5f","tags":["x_refsource_CONFIRM","x_transferred","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3/","tags":["x_refsource_MISC","x_transferred","Release Notes","Vendor Advisory","web"]},{"url":"https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10/","tags":["x_refsource_MISC","x_transferred","Release Notes","Vendor Advisory","web"]},{"url":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9/","tags":["x_refsource_MISC","x_transferred","Release Notes","Vendor Advisory","web"]},{"url":"https://security.netapp.com/advisory/ntap-20220901-0010/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31097.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31097","tags":["advisory"]},{"url":"https://github.com/grafana/grafana","tags":["package"]},{"url":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9","tags":["web"]},{"url":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3","tags":["web"]},{"url":"https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20220901-0010","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.7006,"epssPercentile":0.99389,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-31097","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31097","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-31097","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-vw7q-p2qg-4m5f","ok":true,"note":"GHSA-vw7q-p2qg-4m5f"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-31097","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["grafana"],"critical":["EPSS 70% with CVSS 7.3"],"attention":null}