VDB

CVE-2023-40577

CVE-2023-40577 PUBLISHED CVSS 7.5 HIGH

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.

PackageEcosystemFixed in
github.com/prometheus/alertmanagerGo Modules0.25.1
lokiChainguard2.8.4-r5

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected products

VendorProductVersions
prometheusalertmanager<= 0.25.0
chainguardloki0
prometheusalertmanager0
chainguardthanos-0.31*
wolfithanos-0.32*
wolfiprometheus-operator*
chainguardprometheus-operator*
chainguardpromxy-fips*
chainguardtempo-2.30
chainguardprometheus*
chainguardprometheus-2.450
chainguardthanos-0.32*
wolfiprometheus-2.450
alpinealertmanager0
chainguardpromxy0
wolfipromxy0
wolfithanos-0.31*
wolfiprometheus-alertmanager0
wolfiprometheus*
chainguardprometheus-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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›