CVE-2023-40577
Alertmanager UI is vulnerable to stored XSS via the /api/v1/alerts endpoint
Reported by github_m · Published August 25, 2023
github.com/prometheus/alertmanager is fixed in 0.25.1 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/prometheus/alertmanager | Go Modules | 0.25.1 |
| loki | Chainguard | 2.8.4-r5 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| prometheus | alertmanager | <= 0.25.0 |
| chainguard | loki | 0 |
| prometheus | alertmanager | 0 |
| chainguard | thanos-0.31 | * |
| wolfi | thanos-0.32 | * |
| wolfi | prometheus-operator | * |
| chainguard | prometheus-operator | * |
| chainguard | promxy-fips | * |
| chainguard | tempo-2.3 | 0 |
| chainguard | prometheus | * |
| chainguard | prometheus-2.45 | 0 |
| chainguard | thanos-0.32 | * |
| wolfi | prometheus-2.45 | 0 |
| alpine | alertmanager | 0 |
| chainguard | promxy | 0 |
| wolfi | promxy | 0 |
| wolfi | thanos-0.31 | * |
| wolfi | prometheus-alertmanager | 0 |
| wolfi | prometheus | * |
| chainguard | prometheus-2.38 | * |
…and 2 more
Timeline
- Aug 23, 2023 CVE Published
- Aug 25, 2023 EPSS Score (30 in total, the first dated here)
- Oct 24, 2023 CVE Updated
- Feb 7, 2026 Security Advisory
- Aug 4, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-40577
vulnetix vdb fixes CVE-2023-40577
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-40577/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart