CVE-2023-40577
MEDIUM 5.4CVSS 3.1Alertmanager UI is vulnerable to stored XSS via the /api/v1/alerts endpoint
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.
- Published
- 25 Aug 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- BIT-alertmanager-2023-40577GHSA-v86x-5fm3-5p7jGO-2023-2020
- Sources
- NVDJSONOSV GHSA-v86x-5fm3-5p7jJSONOSV GO-2023-2020JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | prometheus | alertmanagercpe:2.3:a:prometheus:alertmanager:0.25.0:*:*:*:*:*:*:* |
= 0.25.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | Go | github.com/prometheus/alertmanager | < 0.25.1 | 0.25.1 |
References
- https://github.com/prometheus/alertmanager/security/advisories/GHSA-v86x-5fm3-5p7j · Vendor Advisory, WEB, ADVISORY
- https://lists.debian.org/debian-lts-announce/2023/10/msg00011.html · Mailing List, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-40577 · ADVISORY
- https://github.com/prometheus/alertmanager · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 25 Aug 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Aug 2023)