{"id":"GHSA-v86x-5fm3-5p7j","revision":"9e063cad2cb7484f8ea0fe4aff071a79","records":[{"revision":"9e063cad2cb7484f8ea0fe4aff071a79","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-v86x-5fm3-5p7j","aliases":["BIT-alertmanager-2023-40577","CVE-2023-40577","GO-2023-2020"],"title":"Alertmanager UI is vulnerable to stored XSS via the /api/v1/alerts endpoint","description":"### 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\n","state":0,"publishedAt":"2023-08-23T20:42:43+00:00","modifiedAt":"2026-09-10T03:49:57.7649223+00:00","affected":[{"ecosystem":"Go","name":"github.com/prometheus/alertmanager","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.25.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/prometheus/alertmanager/security/advisories/GHSA-v86x-5fm3-5p7j","https://nvd.nist.gov/vuln/detail/CVE-2023-40577","https://github.com/prometheus/alertmanager","https://lists.debian.org/debian-lts-announce/2023/10/msg00011.html"],"sourceUrl":"https://github.com/advisories/GHSA-v86x-5fm3-5p7j","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-v86x-5fm3-5p7j","identifiers":["GHSA-v86x-5fm3-5p7j","BIT-alertmanager-2023-40577","CVE-2023-40577","GO-2023-2020"]},"retained":false,"historicalAffected":[]}],"coverage":[]}