{"id":"CVE-2023-40577","aliases":["CVE-2023-40577","GHSA-v86x-5fm3-5p7j","BIT-ALERTMANAGER-2023-40577","GO-2023-2020"],"related":["CGA-6v29-m49g-qxff"],"kind":"vulnerability","state":"published","title":"Alertmanager UI is vulnerable to stored XSS via the /api/v1/alerts endpoint","summary":"Alertmanager handles alerts sent by client applications such as the Prometheus server. An attacker with the permission to perform POST requests on the /api/v1/alerts endpoint could be able to execute arbitrary JavaScript code on the users of Prometheus Alertmanager. This issue has been fixed in Alertmanager version 0.2.51.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Alertmanager handles alerts sent by client applications such as the Prometheus server. An attacker with the permission to perform POST requests on the /api/v1/alerts endpoint could be able to execute arbitrary JavaScript code on the users of Prometheus Alertmanager. This issue has been fixed in Alertmanager version 0.2.51.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAn attacker with the permission to perform POST requests on the /api/v1/alerts endpoint could be able to execute arbitrary JavaScript code on the users of Prometheus Alertmanager.\n\n### Patches\n\nUsers can upgrade to Alertmanager v0.2.51.\n\n### Workarounds\n\nUsers can setup a reverse proxy in front of the Alertmanager web server to forbid access to the /api/v1/alerts endpoint.\n\n### References\n\nN/A","format":"markdown","source":"ghsa"},{"lang":"en","text":"Alertmanager UI is vulnerable to stored XSS via the /api/v1/alerts endpoint in github.com/prometheus/alertmanager","format":"markdown","source":"go"},{"lang":"es","text":"Alertmanager gestiona alertas enviadas por aplicaciones cliente como el servidor Prometheus. Un atacante con permiso para realizar peticiones POST en el endpoint \"/api/v1/alerts\" podría ser capaz de ejecutar código JavaScript arbitrario en los usuarios de Prometheus Alertmanager. Este problema se ha solucionado en la versión 0.2.51 de Alertmanager.","source":"nvd"}],"published":"2023-08-23T20:42:43.000Z","modified":"2026-09-10T16:01:01.983Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"<= 0.25.0","status":"affected"}],"vendor":"prometheus","product":"alertmanager","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.25.1"}],"ecosystem":"Go","package":"github.com/prometheus/alertmanager","purl":"pkg:golang/github.com/prometheus/alertmanager","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.25.1"}],"ecosystem":"Go","package":"github.com/prometheus/alertmanager","purl":"pkg:golang/github.com/prometheus/alertmanager","source":"go"},{"ranges":[{"status":"affected","version":"0.25.0"}],"vendor":"prometheus","product":"alertmanager","cpe":"cpe:2.3:a:prometheus:alertmanager:0.25.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0.25.0","status":"affected","fixed":"0.25.1"}],"ecosystem":"Bitnami","package":"alertmanager","purl":"pkg:bitnami/alertmanager","source":"bitnami"}],"references":[{"url":"https://github.com/prometheus/alertmanager/security/advisories/GHSA-v86x-5fm3-5p7j","tags":["advisory","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/10/msg00011.html","tags":["discussion","mailing-list","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40577","tags":["advisory","web"],"sources":["ghsa","go","bitnami"]},{"url":"https://github.com/prometheus/alertmanager","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-10-02T17:48:47.367Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-40577","url":"https://www.cve.org/CVERecord?id=CVE-2023-40577","licence":"CVE Terms of Use","modified":"2025-02-13T17:08:34.242Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v86x-5fm3-5p7j","url":"https://github.com/advisories/GHSA-v86x-5fm3-5p7j","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:57.764Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-2020","url":"https://pkg.go.dev/vuln/GO-2023-2020","licence":"CC-BY-4.0","modified":"2026-02-04T04:38:46.106Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-40577","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40577","licence":"Public domain","modified":"2026-06-17T06:18:32.830Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-ALERTMANAGER-2023-40577","url":"https://osv.dev/vulnerability/BIT-ALERTMANAGER-2023-40577","licence":"Apache-2.0","modified":"2026-09-10T16:01:01.983Z"}],"updatedAt":"2026-11-25T22:58:27.349Z","epss":{"score":0.00634,"percentile":0.51715,"date":"2026-12-01T12:00:22.000Z"}}