{"answers":{"affected":"4 open source packages ship an affected version, including github.com/prometheus/alertmanager and alertmanager. It affects 2 products.","exploited":"There is no known exploitation of CVE-2023-40577 in the wild and no public exploit code.","fix":"Upgrade github.com/prometheus/alertmanager to 0.25.1 or later.","what":"CVE-2023-40577 is a high-severity cross-site scripting vulnerability in Debian Debian Linux, published on 25 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-40577 and fix it if it is affected.\n\nWhat it is: CVE-2023-40577 is a high-severity cross-site scripting vulnerability in Debian Debian Linux, published on 25 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-40577 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/prometheus/alertmanager (Go): affected all versions; fixed in 0.25.1\n- github.com/prometheus/alertmanager (Go): affected all versions; fixed in 0.25.1\n- github.com/prometheus/alertmanager (Go): affected all versions; fixed in 0.25.1\n- alertmanager (Bitnami): affected from 0.25.0; fixed in 0.25.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-40577/ (Markdown: https://insights.sbomify.com/CVE-2023-40577/index.md)","id":"CVE-2023-40577","markdown":"https://insights.sbomify.com/CVE-2023-40577/index.md","name":"CVE-2023-40577","record":{"aliases":["BIT-alertmanager-2023-40577","CLEANSTART-2025-UV88153","CLEANSTART-2026-IS77725","CLEANSTART-2026-RH44885","DEBIAN-CVE-2023-40577","DLA-3609-1","GHSA-v86x-5fm3-5p7j","GO-2023-2020","SUSE-SU-2024:0512-1","UBUNTU-CVE-2023-40577","USN-6935-1","openSUSE-SU-2024:13599-1"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Prometheus Alertmanager","requires_auth":"none","summary":"An attacker with POST permissions can inject malicious JavaScript into Alertmanager, leading to arbitrary code execution in victim browsers.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"alertmanager","vendor":"prometheus"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["Bitnami","Go","SUSE:Linux Enterprise Module for Package Hub 15 SP5","SUSE:Manager Client Tools 15","SUSE:Manager Proxy Module 4.3","openSUSE:Leap 15.5","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Alertmanager UI is vulnerable to stored XSS via the /api/v1/alerts endpoint","id":"CVE-2023-40577","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"debian:debian_linux","products":["debian:debian_linux"],"type":"xss","year":"2023"},"n_packages":9,"n_references":2,"next":{"headline":"OpenFGA Authorization Bypass","id":"CVE-2023-40579"},"packages":[{"ecosystem":"Bitnami","fixed":["0.25.1"],"introduced":["0.25.0"],"last_affected":[],"package":"alertmanager","purl":"pkg:bitnami/alertmanager","source":"BIT-alertmanager-2023-40577"},{"ecosystem":"Go","fixed":["0.25.1"],"introduced":["0"],"last_affected":[],"package":"github.com/prometheus/alertmanager","purl":null,"source":"GHSA-v86x-5fm3-5p7j"},{"ecosystem":"Go","fixed":["0.25.1"],"introduced":["0"],"last_affected":[],"package":"github.com/prometheus/alertmanager","purl":"pkg:golang/github.com/prometheus/alertmanager","source":"GHSA-v86x-5fm3-5p7j"},{"ecosystem":"Go","fixed":["0.25.1"],"introduced":["0"],"last_affected":[],"package":"github.com/prometheus/alertmanager","purl":"pkg:golang/github.com/prometheus/alertmanager","source":"GO-2023-2020"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP5","fixed":["0.26.0-150100.4.19.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-alertmanager","purl":"pkg:rpm/suse/golang-github-prometheus-alertmanager\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP5","source":"SUSE-SU-2024:0512-1"},{"ecosystem":"SUSE:Manager Client Tools 15","fixed":["0.26.0-150100.4.19.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-alertmanager","purl":"pkg:rpm/suse/golang-github-prometheus-alertmanager\u0026distro=SUSE%20Manager%20Client%20Tools%2015","source":"SUSE-SU-2024:0512-1"},{"ecosystem":"SUSE:Manager Proxy Module 4.3","fixed":["0.26.0-150100.4.19.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-alertmanager","purl":"pkg:rpm/suse/golang-github-prometheus-alertmanager\u0026distro=SUSE%20Manager%20Proxy%20Module%204.3","source":"SUSE-SU-2024:0512-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["0.26.0-150100.4.19.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-alertmanager","purl":"pkg:rpm/opensuse/golang-github-prometheus-alertmanager\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:0512-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.26.0-4.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-alertmanager","purl":"pkg:rpm/opensuse/golang-github-prometheus-alertmanager\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13599-1"}],"prev":{"headline":"Out-Of-Bounds Read in FreeRDP","id":"CVE-2023-40576"},"products":["alertmanager"],"published":"2023-08-25","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["prometheus"]},"summary":"An attacker with POST permissions can inject malicious JavaScript into Alertmanager, leading to arbitrary code execution in victim browsers.","url":"https://insights.sbomify.com/CVE-2023-40577/"}