cve.bz

CVE-2023-40577 Cross-site Scripting

5.4 mediumEPSS 0.6%Fix available

Medium (5.4). EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/prometheus/alertmanager 0.25.1.

On this page
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.

Severity

CVSS 3.1

5.4 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-10-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-40577 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-40577?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-40577?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-40577 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
prometheus:alertmanager0.25.0
debian:debian_linux10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v86x-5fm3-5p7jGogithub.com/prometheus/alertmanager<0.25.10.25.1
GO-2023-2020Gogithub.com/prometheus/alertmanager<0.25.10.25.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10prometheus-alertmanager0.15.3+ds-3+deb10u1DLA-3609-1
Debian12prometheus-alertmanagerno fix listedDEBIAN-CVE-2023-40577
Debian13, 14prometheus-alertmanager0.26.0+ds-1DEBIAN-CVE-2023-40577
Ubuntu20.04:LTSprometheus-alertmanager0.15.3+ds-3ubuntu1.2UBUNTU-CVE-2023-40577 USN-6935-1
UbuntuPro:18.04:LTSprometheus-alertmanager0.6.2+ds-3ubuntu0.1+esm1UBUNTU-CVE-2023-40577 USN-6935-1
UbuntuPro:22.04:LTSprometheus-alertmanager0.23.0-4ubuntu0.2+esm1UBUNTU-CVE-2023-40577 USN-6935-1
SUSELinux Enterprise Module for Package Hub 15 SP5, Manager Client Tools 15, Manager Proxy Module 4.3golang-github-prometheus-alertmanager0.26.0-150100.4.19.1SUSE-SU-2024:0512-1
SUSEManager Client Tools 12golang-github-lusitaniae-apache_exporter1.0.0-1.21.2SUSE-SU-2024:0486-1
SUSEManager Client Tools 12golang-github-prometheus-alertmanager0.26.0-1.24.2SUSE-SU-2024:0486-1
SUSEManager Client Tools 12golang-github-prometheus-prometheus2.45.0-1.50.2SUSE-SU-2024:0486-1
SUSEManager Client Tools 12grafana9.5.8-1.60.1SUSE-SU-2024:0486-1
SUSEManager Client Tools 12mgr-daemon4.3.8-1.44.2SUSE-SU-2024:0486-1
SUSEManager Client Tools 12prometheus-postgres_exporter0.10.1-1.17.2SUSE-SU-2024:0486-1
SUSEManager Client Tools 12spacecmd4.3.26-38.136.2SUSE-SU-2024:0486-1
SUSEManager Client Tools 12spacewalk-client-tools4.3.18-52.95.2SUSE-SU-2024:0486-1
SUSEManager Client Tools 12-BETAgolang-github-QubitProducts-exporter_exporter0.4.0-4.6.2SUSE-SU-2024:0191-1
SUSEManager Client Tools 12-BETAgolang-github-boynux-squid_exporter1.6-4.9.2SUSE-SU-2024:0191-1
SUSEManager Client Tools 12-BETAgolang-github-lusitaniae-apache_exporter1.0.0-4.12.4SUSE-SU-2024:0191-1
16 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5golang-github-prometheus-alertmanager0.26.0-150100.4.19.1SUSE-SU-2024:0512-1
openSUSETumbleweedgolang-github-prometheus-alertmanager0.26.0-4.1openSUSE-SU-2024:13599-1
Alpinev3.19, v3.20, v3.21 and 3 morealertmanager0.26.0-r0ALPINE-CVE-2023-40577

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability affects Prometheus Alertmanager v0.25.0, which is not shipped in Red Hat OpenShift container platform, therefore, this is marked as Not affected.

Red Hat's mitigation

Users can setup a reverse proxy in front of the Alertmanager web server to forbid access to the /api/v1/alerts endpoint.

ProductPackageStateAdvisory
Red Hat OpenShift Container Platform 4.15openshift4/ose-prometheus-alertmanager:v4.15.0-202401290854.p0.g870ade5.assembly.streamFixed 2024-02-27RHSA-2023:7198
Red Hat Advanced Cluster Management for Kubernetes 2prometheus-alertmanager-containerNot affected
Red Hat OpenShift Container Platform 3.11golang-github-prometheus-alertmanagerNot affected
Red Hat OpenShift Container Platform 3.11openshift3/prometheus-alertmanagerNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-40577.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON