Stored XSS in Grafana's Unified Alerting
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-31097
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 16:39 UTC · Revision 1
Source evidence
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.
osv:CVE-2022-31097
Complete source record
{
"id": "9eea208033f48492ac0e3c15b8c9f6de85b2e80c3419e6ac04bf8cef17a15276",
"url": "https://osv.dev/vulnerability/CVE-2022-31097",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Stored XSS in Grafana's Unified Alerting",
"summary": "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.",
"evidence": "osv:CVE-2022-31097",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2022-31097",
"aliases": [
"BIT-grafana-2022-31097",
"CVE-2022-31097",
"GHSA-vw7q-p2qg-4m5f",
"GO-2024-2857"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/grafana/grafana",
"type": "GIT",
"events": [
{
"introduced": "41f0542c1ec16ce93b336a9f5cf6eef1aba898d0"
},
{
"fixed": "1cf8d3e67c07450a04fe0a8513e6fbe21ae89ca6"
},
{
"introduced": "e6728d143480cc05d6f91eb740f91836399b8e6a"
},
{
"fixed": "0f5a1e53f03a0735e013e4f3fb7ec084865ef964"
},
{
"introduced": "6134e3cf35a99c7dd3041b7ececb47cb7619ba9a"
},
{
"fixed": "2955d0bc8acaa69edbc03c3efb5c1e4f1e9d84d9"
},
{
"introduced": "b5c56f63710e09f37b8557ddd8b99ae3fc583169"
},
{
"fixed": "023f9251a91743d2399fc32dcf5df8422759a8eb"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "8.0.0"
},
{
"fixed": "8.3.10"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "8.4.0"
},
{
"fixed": "8.4.10"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "8.5.0"
},
{
"fixed": "8.5.9"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "9.0.0"
},
{
"fixed": "9.0.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31097.json"
}
}
],
"modified": "2026-10-28T02:30:37.523708772Z",
"provider": "osv",
"references": [
"https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9/",
"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://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31097.json",
"https://github.com/grafana/grafana/security/advisories/GHSA-vw7q-p2qg-4m5f",
"https://nvd.nist.gov/vuln/detail/CVE-2022-31097",
"https://security.netapp.com/advisory/ntap-20220901-0010/"
],
"provider_metadata": {
"cwe_ids": [
"CWE-79"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31097.json"
}
},
"related_cves": [
{
"value": "CVE-2022-31097",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 504654,
"published_at": "2022-07-15T12:10:10+00:00"
}