p PatchFirst

CVE-2023-40577

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

CVSS 7.5 · High · EPSS 0.7% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

apk list -I -o alertmanager

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

  • USN-6935-1 · Ubuntu 20.04 LTS, Ubuntu Pro 18.04 LTS, Ubuntu Pro 22.04 LTS ·
  • openSUSE-SU-2024:13599-1 · openSUSE Tumbleweed ·
  • SUSE-SU-2024:0512-1 · openSUSE Leap 15.5, SUSE Linux Enterprise Module for Package Hub 15 SP5, SUSE Manager Client Tools 15, SUSE Manager Proxy Module 4.3 ·
  • SUSE-SU-2024:0486-1 · SUSE Manager Client Tools 12 ·
  • SUSE-SU-2024:0191-1 · SUSE Manager Client Tools 12-BETA ·
  • DLA-3609-1 · Debian 10 ·

Stack: system

Affected products and versions

  • alertmanager

    Versions
    • <= 0.25.0: Affected

    No fix published

  • alertmanager Alpine 3.19

    Affected ranges
    • ECOSYSTEM: < 0.26.0-r0

    Update to 0.26.0-r0

  • alertmanager Alpine 3.20

    Affected ranges
    • ECOSYSTEM: < 0.26.0-r0

    Update to 0.26.0-r0

  • alertmanager Alpine 3.21

    Affected ranges
    • ECOSYSTEM: < 0.26.0-r0

    Update to 0.26.0-r0

  • alertmanager Alpine 3.22

    Affected ranges
    • ECOSYSTEM: < 0.26.0-r0

    Update to 0.26.0-r0

  • alertmanager Alpine 3.23

    Affected ranges
    • ECOSYSTEM: < 0.26.0-r0

    Update to 0.26.0-r0

  • alertmanager Alpine 3.24

    Affected ranges
    • ECOSYSTEM: < 0.26.0-r0

    Update to 0.26.0-r0

  • prometheus-alertmanager Debian 12

    Versions
    • 0.25.0+ds-1
    • 0.25.0-1
    • 0.26.0+ds-1
    • 0.27.0+ds-1
    • 0.27.0+ds-2
    • 0.27.0+ds-3
    All versions (21)
    • 0.28.0+ds-1
    • 0.28.0+ds-2
    • 0.28.1+ds-1
    • 0.28.1+ds-2
    • 0.28.1+ds-3
    • 0.29.0+ds-1
    • 0.30.1+ds-1
    • 0.31.1+ds-1
    • 0.31.1+ds-2
    • 0.33.1-1
    • 0.33.1-2
    • 0.33.1-3
    • 0.33.1-4
    • 0.33.1-5
    • 0.33.1-5~exp1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • prometheus-alertmanager Debian 13

    Affected ranges
    • ECOSYSTEM: < 0.26.0+ds-1

    Update to 0.26.0+ds-1

  • prometheus-alertmanager Debian 14

    Affected ranges
    • ECOSYSTEM: < 0.26.0+ds-1

    Update to 0.26.0+ds-1

  • prometheus-alertmanager Ubuntu Pro 18.04 LTS

    Versions
    • 0.6.2+ds-2
    • 0.6.2+ds-3
    • 0.6.2+ds-3ubuntu0.1
    Affected ranges
    • ECOSYSTEM: < 0.6.2+ds-3ubuntu0.1+esm1

    Update to 0.6.2+ds-3ubuntu0.1+esm1

  • prometheus-alertmanager Ubuntu 20.04 LTS

    Versions
    • 0.15.3+ds-3
    • 0.15.3+ds-3ubuntu1
    • 0.15.3+ds-3ubuntu1.1
    Affected ranges
    • ECOSYSTEM: < 0.15.3+ds-3ubuntu1.2

    Update to 0.15.3+ds-3ubuntu1.2

  • prometheus-alertmanager Ubuntu Pro 22.04 LTS

    Versions
    • 0.21.0+ds-4
    • 0.23.0-4
    • 0.23.0-4ubuntu0.1
    • 0.23.0-4ubuntu0.2
    Affected ranges
    • ECOSYSTEM: < 0.23.0-4ubuntu0.2+esm1

    Update to 0.23.0-4ubuntu0.2+esm1

Original sources

Check your server →