{"schema_version":"1.9.0","id":"CVE-2023-40577","published":"2023-08-25T00:12:13.045Z","modified":"2026-08-12T03:51:42.066556277Z","aliases":["BIT-alertmanager-2023-40577","GHSA-v86x-5fm3-5p7j","GO-2023-2020"],"related":["CGA-6v29-m49g-qxff","SUSE-SU-2024:0191-1","SUSE-SU-2024:0486-1","SUSE-SU-2024:0512-1","openSUSE-SU-2024:13599-1"],"summary":"Alertmanager UI is vulnerable to stored XSS via the /api/v1/alerts endpoint","details":"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.","affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/prometheus/alertmanager","events":[{"introduced":"258fab7cdd551f2cf251ed0348f0ad7289aee789"},{"last_affected":"258fab7cdd551f2cf251ed0348f0ad7289aee789"}],"database_specific":{"cpe":"cpe:2.3:a:prometheus:alertmanager:0.25.0:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"0.25.0"},{"introduced":"0.25.0"}],"source":["AFFECTED_FIELD","CPE_STRING"]}}],"versions":["0.25.0","v0.25.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-40577.json"}}],"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/10/msg00011.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40577.json"},{"type":"ADVISORY","url":"https://github.com/prometheus/alertmanager/security/advisories/GHSA-v86x-5fm3-5p7j"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40577"}],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40577.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}