7.5
CWE
79
Advisory Published
CVE Published
CVE Published
Updated

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

First published: Wed 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

Credit: security-advisories@github.com security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Prometheus Alertmanager=0.25.0
go/github.com/prometheus/alertmanager<=0.25.0
0.25.1
redhat/Alertmanager<0.25.1
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 Linux=10.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

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

  • How do I fix CVE-2023-40577?

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

  • What software is affected by CVE-2023-40577?

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

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

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203