# CVE-2023-40577: prometheus-alertmanager: Alertmanager handles alerts sent by client applications such as the Prometheus server

CVE-2023-40577 is fixed in 2 products on 1 platform, first by golang-github-prometheus-alertmanager-dev 0.6.2+ds-3ubuntu0.1+esm1, released August 24, 2023. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2023-40577
- Priority: Routine
- CVSS: 5.4 (medium)
- EPSS: 0.0063
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Aug 24, 2023

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | golang-github-prometheus-alertmanager-dev Ubuntu 18.04.6 LTS (bionic) | 0.6.2+ds-3ubuntu0.1+esm1 | [golang-github-prometheus-alertmanager-dev 0.6.2+ds-3ubuntu0.1+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-golang-github-prometheus-alertmanager-dev-0.6.2-ds-3ubuntu0.1-esm1.md) | Aug 24, 2023 |
| Linux | golang-github-prometheus-alertmanager-dev Ubuntu 20.04 LTS (focal) | 0.15.3+ds-3ubuntu1.2 | [golang-github-prometheus-alertmanager-dev 0.15.3+ds-3ubuntu1.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-golang-github-prometheus-alertmanager-dev-0.15.3-ds-3ubuntu1.2.md) | Aug 24, 2023 |
| Linux | golang-github-prometheus-alertmanager-dev Ubuntu 22.04.1 LTS (jammy) | 0.23.0-4ubuntu0.2+esm1 | [golang-github-prometheus-alertmanager-dev 0.23.0-4ubuntu0.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-golang-github-prometheus-alertmanager-dev-0.23.0-4ubuntu0.2-esm1.md) | Aug 24, 2023 |
| Linux | prometheus-alertmanager Debian 13.5 (trixie) | 0.26.0+ds-1 | [DEBIAN-CVE-2023-40577](https://patchblox.com/security/data/fix/linux/debian-cve-2023-40577.md) | Aug 25, 2023 |
| Linux | prometheus-alertmanager Debian 14 | 0.26.0+ds-1 | [DEBIAN-CVE-2023-40577](https://patchblox.com/security/data/fix/linux/debian-cve-2023-40577.md) | Aug 25, 2023 |
| Linux | prometheus-alertmanager Ubuntu 18.04.6 LTS (bionic) | 0.6.2+ds-3ubuntu0.1+esm1 | [prometheus-alertmanager 0.6.2+ds-3ubuntu0.1+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-prometheus-alertmanager-0.6.2-ds-3ubuntu0.1-esm1.md) | Aug 24, 2023 |
| Linux | prometheus-alertmanager Ubuntu 20.04 LTS (focal) | 0.15.3+ds-3ubuntu1.2 | [prometheus-alertmanager 0.15.3+ds-3ubuntu1.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-prometheus-alertmanager-0.15.3-ds-3ubuntu1.2.md) | Aug 24, 2023 |
| Linux | prometheus-alertmanager Ubuntu 22.04.1 LTS (jammy) | 0.23.0-4ubuntu0.2+esm1 | [prometheus-alertmanager 0.23.0-4ubuntu0.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-prometheus-alertmanager-0.23.0-4ubuntu0.2-esm1.md) | Aug 24, 2023 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
