# CVE-2023-40577: Alertmanager UI is vulnerable to stored XSS via the /api/v1/alerts endpoint

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Published: 2023-08-23T20:42:43.000Z
- Modified: 2026-09-10T16:01:01.983Z
- Also known as: GHSA-v86x-5fm3-5p7j, BIT-ALERTMANAGER-2023-40577, GO-2023-2020
- Related: CGA-6v29-m49g-qxff
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- prometheus alertmanager: <= 0.25.0; 0.25.0
- github.com/prometheus/alertmanager (Go): before 0.25.1
- debian debian_linux: 10.0
- alertmanager (Bitnami): from 0.25.0 before 0.25.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/prometheus/alertmanager/security/advisories/GHSA-v86x-5fm3-5p7j> (advisory, vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2023/10/msg00011.html> (discussion, mailing-list, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-40577> (advisory, web)
- <https://github.com/prometheus/alertmanager> (package)

## Sources

- CVE List: [CVE-2023-40577](https://www.cve.org/CVERecord?id=CVE-2023-40577), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-v86x-5fm3-5p7j](https://github.com/advisories/GHSA-v86x-5fm3-5p7j), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2023-2020](https://pkg.go.dev/vuln/GO-2023-2020), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2023-40577](https://nvd.nist.gov/vuln/detail/CVE-2023-40577), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-ALERTMANAGER-2023-40577](https://osv.dev/vulnerability/BIT-ALERTMANAGER-2023-40577), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2023-40577 · Whole record: https://cve.day/CVE-2023-40577.json · Rebuilt by cve.day 2026-11-25T22:58:27.349Z
