{"id":"CVE-2022-31097","state":"PUBLISHED","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, 8.4.10, and 8.3.10 contain a patch. As a workaround, it is possible to disable alerting or use legacy alerting.","publishedAt":"2022-07-15T12:10:10.000Z","updatedAt":"2026-01-28T04:55:34.182Z","severity":{"score":7.3,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["grafana grafana"],"affected":[{"vendor":"grafana","product":"grafana","versions":[{"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","status":"affected"}]}],"references":["https://github.com/grafana/grafana/security/advisories/GHSA-vw7q-p2qg-4m5f","https://grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3/","https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10/","https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9/","https://security.netapp.com/advisory/ntap-20220901-0010/"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T19:50:06.617Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/31xxx/CVE-2022-31097.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-31097","state":"PUBLISHED","datePublished":"2022-07-15T12:10:10.000Z","dateUpdated":"2026-01-28T04:55:34.182Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2022-05-18T00:00:00.000Z"},"containers":{"cna":{"title":"Stored XSS in Grafana's Unified Alerting","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"grafana","product":"grafana","versions":[{"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","status":"affected"}]}],"references":[{"url":"https://github.com/grafana/grafana/security/advisories/GHSA-vw7q-p2qg-4m5f","tags":["x_refsource_CONFIRM"]},{"url":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3/","tags":["x_refsource_MISC"]},{"url":"https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10/","tags":["x_refsource_MISC"]},{"url":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9/","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20220901-0010/","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.3,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2022-09-01T13:06:34.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-vw7q-p2qg-4m5f","discovery":"UNKNOWN"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-31097","STATE":"PUBLIC","TITLE":"Stored XSS in Grafana's Unified Alerting"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"grafana","version":{"version_data":[{"version_value":">= 9.0.0, < 9.0.3"},{"version_value":">= 8.5.0, < 8.5.9"},{"version_value":">= 8.4.0, < 8.4.10"},{"version_value":">= 8.0.0, < 8.3.10"}]}}]},"vendor_name":"grafana"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.3,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"}]}]},"references":{"reference_data":[{"name":"https://github.com/grafana/grafana/security/advisories/GHSA-vw7q-p2qg-4m5f","refsource":"CONFIRM","url":"https://github.com/grafana/grafana/security/advisories/GHSA-vw7q-p2qg-4m5f"},{"name":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3/","refsource":"MISC","url":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3/"},{"name":"https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10/","refsource":"MISC","url":"https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10/"},{"name":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9/","refsource":"MISC","url":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9/"},{"name":"https://security.netapp.com/advisory/ntap-20220901-0010/","refsource":"CONFIRM","url":"https://security.netapp.com/advisory/ntap-20220901-0010/"}]},"source":{"advisory":"GHSA-vw7q-p2qg-4m5f","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/grafana/grafana/security/advisories/GHSA-vw7q-p2qg-4m5f","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3/","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10/","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9/","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20220901-0010/","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T07:11:38.469Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-01-27T00:00:00+00:00","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3","id":"CVE-2022-31097"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-28T04:55:34.182Z"}}]}}}