CVE-2023-40577Prometheus Alertmanager
Medium 5.4
Follow: this CVE · Prometheus · Prometheus Alertmanager We alert you by email or Slack (account required).
- Priority
- 32
- CVSS 3.1
- 5.4
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 48
- Auth required
- Yes
- Published
- Aug 25, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Alertmanager.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/prometheus/alertmanager |
< 0.25.1 |
0.25.1 |
go get github.com/prometheus/alertmanager@v0.25.1 |
| Go | github.com/prometheus/alertmanager |
< 0.25.1 |
0.25.1 |
go get github.com/prometheus/alertmanager@v0.25.1 |
Per OSV / GitHub Advisories (GHSA-v86x-5fm3-5p7j, GO-2023-2020). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| prometheus | alertmanager | 0.25.0 |
| debian | debian_linux | 10.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Vendor Advisory
- lists.debian.org Mailing List