Vulnerability · Published Aug 25, 2023 · Assigned by GitHub_M

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

High 7.5

In plain English

A high-severity cross-site scripting in alertmanager from prometheus. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.6%top 49.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20alertmanager0.26.0-r0ALPINE-CVE-2023-40577
Alpine:v3.21alertmanager0.26.0-r0ALPINE-CVE-2023-40577
Alpine:v3.22alertmanager0.26.0-r0ALPINE-CVE-2023-40577
Alpine:v3.23alertmanager0.26.0-r0ALPINE-CVE-2023-40577
Alpine:v3.24alertmanager0.26.0-r0ALPINE-CVE-2023-40577
Debian:12prometheus-alertmanagerno fix listedDEBIAN-CVE-2023-40577
Debian:13prometheus-alertmanager0.26.0+ds-1DEBIAN-CVE-2023-40577
Debian:14prometheus-alertmanager0.26.0+ds-1DEBIAN-CVE-2023-40577
Gogithub.com/prometheus/alertmanager0.25.1GO-2023-2020
Gogithub.com/prometheus/alertmanager0.25.1GHSA-v86x-5fm3-5p7j

Affected products (as reported)

VendorProductVersions
prometheus alertmanager <= 0.25.0

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

References