{"answers":{"affected":"3 open source packages ship an affected version, including github.com/prometheus/prometheus and prometheus. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-29622 exists.","fix":"Upgrade github.com/prometheus/prometheus to a fixed version for your release line: 2.26.1 or 2.27.1.","what":"CVE-2021-29622 is a medium-severity vulnerability in prometheus, published on 19 May 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-29622 and fix it if it is affected.\n\nWhat it is: CVE-2021-29622 is a medium-severity vulnerability in prometheus, published on 19 May 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-29622 exists.\n\nAffected packages and fixed versions:\n- github.com/prometheus/prometheus (Go): affected from 2.23.0; fixed in 2.26.1\n- github.com/prometheus/prometheus (Go): affected from 2.27.0; fixed in 2.27.1\n- prometheus (Bitnami): affected from 2.23.0; fixed in 2.26.1, 2.27.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-2021-29622/ (Markdown: https://insights.sbomify.com/CVE-2021-29622/index.md)","id":"CVE-2021-29622","markdown":"https://insights.sbomify.com/CVE-2021-29622/index.md","name":"CVE-2021-29622","record":{"aliases":["AZL-6804","BIT-prometheus-2021-29622","CLEANSTART-2026-JD89615","GHSA-vx57-7f4q-fpc7","SUSE-SU-2021:2664-1","UBUNTU-CVE-2021-29622","openSUSE-SU-2021:2664-1"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Prometheus monitoring server","requires_auth":"none","summary":"Attackers can craft URLs to redirect users to arbitrary external sites via the /new endpoint in Prometheus.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"prometheus","vendor":"prometheus"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"description":"Prometheus is an open-source monitoring system and time series database. In 2.23.0, Prometheus changed its default UI to the New ui. To ensure a seamless transition, the URL's prefixed by /new redirect to /. Due to a bug in the code, it is possible for an attacker to craft an URL that can redirect to any other URL, in the /new endpoint. If a user visits a prometheus server with a specially crafted address, they can be redirected to an arbitrary URL. The issue was patched in the 2.26.1 and 2.27.1 releases. In 2.28.0, the /new endpoint will be removed completely. The workaround is to disable access to /new via a reverse proxy in front of Prometheus.","ecosystems":["Bitnami","Go","SUSE:Enterprise Storage 6","openSUSE:Leap 15.3"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-29622.yaml","stars":null,"title":"Prometheus - Open Redirect"}],"tier":"weaponised"},"has_fix":true,"headline":"Arbitrary redirects under /new endpoint","id":"CVE-2021-29622","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"open_redirect","year":"2021"},"n_packages":5,"n_references":3,"next":{"headline":"Uninitialized variable bug in Exiv2","id":"CVE-2021-29623"},"packages":[{"ecosystem":"Bitnami","fixed":["2.26.1","2.27.1"],"introduced":["2.23.0","2.27.0"],"last_affected":[],"package":"prometheus","purl":"pkg:bitnami/prometheus","source":"BIT-prometheus-2021-29622"},{"ecosystem":"Go","fixed":["2.26.1"],"introduced":["2.23.0"],"last_affected":[],"package":"github.com/prometheus/prometheus","purl":"pkg:golang/github.com/prometheus/prometheus","source":"GHSA-vx57-7f4q-fpc7"},{"ecosystem":"Go","fixed":["2.27.1"],"introduced":["2.27.0"],"last_affected":[],"package":"github.com/prometheus/prometheus","purl":"pkg:golang/github.com/prometheus/prometheus","source":"GHSA-vx57-7f4q-fpc7"},{"ecosystem":"SUSE:Enterprise Storage 6","fixed":["2.27.1-3.8.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-prometheus","purl":"pkg:rpm/suse/golang-github-prometheus-prometheus\u0026distro=SUSE%20Enterprise%20Storage%206","source":"SUSE-SU-2021:2664-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["2.27.1-3.8.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-prometheus","purl":"pkg:rpm/opensuse/golang-github-prometheus-prometheus\u0026distro=openSUSE%20Leap%2015.3","source":"openSUSE-SU-2021:2664-1"}],"prev":{"headline":"Observable Response Discrepancy in Flask-AppBuilder","id":"CVE-2021-29621"},"products":["prometheus"],"published":"2021-05-19","related":[{"cvss_score":7.5,"headline":"Prometheus Azure AD remote write OAuth client secret exposed via config API","id":"CVE-2026-42151","kev_date_added":null,"published":"2026-05-04"},{"cvss_score":7.5,"headline":"Prometheus: remote read endpoint allows denial of service via crafted snappy payload","id":"CVE-2026-42154","kev_date_added":null,"published":"2026-05-04"},{"cvss_score":6.1,"headline":"Cross-site scripting in prometheus","id":"CVE-2019-3826","kev_date_added":null,"published":"2019-03-26"},{"cvss_score":5.3,"headline":"Prometheus: Stored XSS via metric names and label values in web UI tooltips and metrics explorer","id":"CVE-2026-40179","kev_date_added":null,"published":"2026-04-15"},{"cvss_score":5.1,"headline":"Prometheus: Stored XSS via crafted histogram bucket label values in the heatmap display of the old Prometheus web UI","id":"CVE-2026-44903","kev_date_added":null,"published":"2026-05-26"}],"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":"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)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["prometheus"]},"summary":"Attackers can craft URLs to redirect users to arbitrary external sites via the /new endpoint in Prometheus.","url":"https://insights.sbomify.com/CVE-2021-29622/"}