{"schemaVersion":3,"id":"CVE-2022-31097","aliases":["UBUNTU-CVE-2022-31097","GHSA-vw7q-p2qg-4m5f","BIT-grafana-2022-31097","GO-2024-2857","CGA-29pg-q42h-xxvw","CGA-3xv4-f23x-mhwx","CGA-48fj-7vr7-hhv5","CGA-5c3m-wvxc-jjqf","CGA-6r2r-q7gh-9pr8","CGA-72rx-8qm7-99mp","CGA-74ff-p9vr-g886","CGA-7jx2-4rf3-wh5x","CGA-7mrh-27qv-mc8r","CGA-7q57-jj75-wx63","CGA-8c8r-9c45-259g","CGA-c55r-2mvh-m3hw","CGA-c9j5-9f59-7wp4","CGA-cjqw-rxpq-mj2r","CGA-cqc2-rq36-49h6","CGA-cvvw-5v3j-m3f2","CGA-f2cg-3p6r-p433","CGA-fjp6-jxr2-5ghm","CGA-gj5h-r6x3-hvv2","CGA-h5xw-q5w6-qfwq","CGA-hxc5-2v7h-8494","CGA-jj3w-c68r-p9h3","CGA-jmgp-9m2x-7cr8","CGA-m3qh-h7jw-4mq7","CGA-m47x-88vc-855w","CGA-m9xx-hx8m-c97p","CGA-mm84-58qg-73mf","CGA-mwv4-xgmv-944c","CGA-p7m8-5wq9-rwr6","CGA-q34j-mcwh-m2w3","CGA-r6gf-gfjf-3ppm","CGA-rpv5-w739-xf4x","CGA-v4jm-f5vv-hpj7","CGA-v6p8-m4qw-976p","CGA-vmxw-66h8-xpgg","CGA-x533-vhvw-whr5","CGA-x6g6-8v89-gj84","CGA-x9m6-c6q8-mjg2","CGA-xcpw-3236-9ph8","CGA-xjpx-6ggh-3xc4"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-07-15T12:10:10.000Z","modified":"2026-01-28T04:55:34.182Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.7,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.7,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","exploitability":5.9,"impact":9.7,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Go","score":6.3,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","exploitability":5.4,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","exploitability":5.4,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.7,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.7006,"percentile":0.99374,"severity":"critical","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":1.4569999999999972,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.68603},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.7006,"percentile":0.99374}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.68603,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.7006,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.7006,"percentile":0.99374}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"chainguard","product":"grafana-fips-11.6","name":"grafana-fips-11.6","label":"grafana-fips-11.6","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/grafana-fips-11.6","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"grafana-fips-12.0","name":"grafana-fips-12.0","label":"grafana-fips-12.0","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/grafana-fips-12.0","purlType":"apk","versions":[{"text":"< 12.0.10-r6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 12.0.10-r6","eol":null,"hubHref":null},{"vendor":"chainguard","product":"grafana-fips-12.1","name":"grafana-fips-12.1","label":"grafana-fips-12.1","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/grafana-fips-12.1","purlType":"apk","versions":[{"text":"< 12.1.10.01-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 12.1.10.01-r3","eol":null,"hubHref":null},{"vendor":"chainguard","product":"grafana-fips-12.2","name":"grafana-fips-12.2","label":"grafana-fips-12.2","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/grafana-fips-12.2","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"grafana-fips-12.3","name":"grafana-fips-12.3","label":"grafana-fips-12.3","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/grafana-fips-12.3","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"grafana-fips-12.4","name":"grafana-fips-12.4","label":"grafana-fips-12.4","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/grafana-fips-12.4","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"grafana-fips-13.0","name":"grafana-fips-13.0","label":"grafana-fips-13.0","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/grafana-fips-13.0","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"grafana-fips-13.1","name":"grafana-fips-13.1","label":"grafana-fips-13.1","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/grafana-fips-13.1","purlType":"apk","versions":[{"text":"< 13.1.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 13.1.0-r0","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"grafana","name":"grafana","label":"grafana","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/grafana","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/grafana","product":"grafana","name":"github.com/grafana/grafana","label":"grafana","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/grafana/grafana","purlType":"golang","versions":[{"text":"≥ 9.0.0, < 9.0.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.5.0, < 8.5.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.4.0, < 8.4.10","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.0.0, < 8.3.10","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"≥ 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 (No fix recorded)","eol":null,"hubHref":null},{"vendor":"grafana","product":"grafana","name":"grafana","label":"grafana","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 8.0.0, < 8.3.10","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.4.0, < 8.4.10","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.5.0, < 8.5.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 9.0.0, < 9.0.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 8.0.0, < 8.3.10 | ≥ 8.4.0, < 8.4.10 | ≥ 8.5.0, < 8.5.9 | ≥ 9.0.0, < 9.0.3","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"grafana","label":"Grafana","category":"server-app"}},"hubHref":"/vendor/grafana/grafana"},{"vendor":"netapp","product":"e-series_performance_analyzer","name":"e-series performance analyzer","label":"e-series_performance_analyzer","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/netapp/e-series_performance_analyzer"}],"affectedCount":12,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/grafana/grafana/security/advisories/GHSA-vw7q-p2qg-4m5f","label":"github.com/grafana/grafana/security/advisories/GHSA-vw7q-p2qg-4m5f","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","Release Notes","Third Party Advisory"]},{"url":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3/","label":"grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3/","hostname":"grafana.com","tags":["X Refsource MISC","WEB","Release Notes","Vendor Advisory"]},{"url":"https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10/","label":"grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10/","hostname":"grafana.com","tags":["X Refsource MISC","WEB","Release Notes","Vendor Advisory"]},{"url":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9/","label":"grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9/","hostname":"grafana.com","tags":["X Refsource MISC","WEB","Release Notes","Vendor Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20220901-0010/","label":"security.netapp.com/advisory/ntap-20220901-0010/","hostname":"security.netapp.com","tags":["X Refsource CONFIRM","Advisory","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-31097","label":"ubuntu.com/security/CVE-2022-31097","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31097","label":"www.cve.org/CVERecord?id=CVE-2022-31097","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31097","label":"nvd.nist.gov/vuln/detail/CVE-2022-31097","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/grafana/grafana","label":"github.com/grafana/grafana","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9","label":"grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9","hostname":"grafana.com","tags":["WEB"]},{"url":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3","label":"grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3","hostname":"grafana.com","tags":["WEB"]},{"url":"https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10","label":"grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10","hostname":"grafana.com","tags":["WEB"]},{"url":"https://security.netapp.com/advisory/ntap-20220901-0010","label":"security.netapp.com/advisory/ntap-20220901-0010","hostname":"security.netapp.com","tags":["WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31097.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31097.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:12260-1","SUSE-SU-2022:3676-1","SUSE-SU-2022:3747-1","SUSE-SU-2022:3751-1","SUSE-SU-2022:3765-1","SUSE-SU-2022:4428-1","SUSE-SU-2022:4437-1","SUSE-SU-2022:4439-1","SUSE-SU-2023:2575-1","SUSE-SU-2023:2578-1","SUSE-SU-2023:2579-1","SUSE-SU-2024:0191-1","SUSE-SU-2024:0196-1"],"duplicates":[],"related":["CGA-XW7H-Q8JQ-9979","OPENSUSE-SU-2024:12260-1","SUSE-SU-2022:3676-1","SUSE-SU-2022:3747-1","SUSE-SU-2022:3751-1","SUSE-SU-2022:3765-1","SUSE-SU-2022:4428-1","SUSE-SU-2022:4437-1","SUSE-SU-2022:4439-1","SUSE-SU-2023:2575-1","SUSE-SU-2023:2578-1","SUSE-SU-2023:2579-1","SUSE-SU-2024:0191-1","SUSE-SU-2024:0196-1"]},"timeline":[{"kind":"published","date":"2022-07-15T12:10:10.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-01-28T04:55:34.182Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":49,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T01:08:40.945Z","stale":false,"partial":false}}