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

Published Aug 23, 2023
·
Updated

Impact

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.

Patches

Users can upgrade to Alertmanager v0.2.51.

Workarounds

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

References

N/A

Other sources

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.

Ubuntu

Affected Software

9 affected componentsFixes available
Prometheus Alertmanager=0.25.0
go/github.com/prometheus/alertmanager<=0.25.0
0.25.1
debian/prometheus-alertmanager<=0.21.0+ds-4, <=0.25.0-1
0.27.0+ds-2
ubuntu/prometheus-alertmanager<0.6.2+
0.6.2+
ubuntu/prometheus-alertmanager<0.15.3+
0.15.3+
ubuntu/prometheus-alertmanager<0.23.0-4ubuntu0.2+
0.23.0-4ubuntu0.2+
ubuntu/prometheus-alertmanager<0.26.0+
0.26.0+
Debian Debian Linux=10.0
redhat/Alertmanager<0.25.1
0.25.1

Event History

Aug 23, 2023
Advisory Published
08:42 PM
Aug 25, 2023
CVE Published
via Ubuntu·12:00 AM
CVE Published
via MITRE·12:12 AM
Data Sourced
via MITRE·12:12 AM
DescriptionSeverityWeakness
Aug 28, 2023
Data Sourced
via Red Hat·08:12 PM
DescriptionSeverityAffected Software
Jul 31, 2024
Data Sourced
via Launchpad·04:31 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-40577?

CVE-2023-40577 is considered a high severity vulnerability due to its potential for arbitrary JavaScript code execution.

2

How do I fix CVE-2023-40577?

To fix CVE-2023-40577, users should upgrade to Alertmanager version 0.25.1 or later.

3

What software is affected by CVE-2023-40577?

CVE-2023-40577 affects Prometheus Alertmanager versions up to and including 0.25.0.

4

Can I mitigate CVE-2023-40577 without upgrading?

Yes, users can implement workarounds such as restricting access to the /api/v1/alerts endpoint to limit exposure.

5

What type of attack does CVE-2023-40577 facilitate?

CVE-2023-40577 allows attackers to execute malicious JavaScript in the context of user sessions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203