{"answers":{"affected":"4 open source packages ship an affected version, including github.com/prometheus/prometheus and prometheus. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-42151 in the wild and no public exploit code.","fix":"Upgrade github.com/prometheus/prometheus to 0.311.3 or later.","what":"CVE-2026-42151 is a high-severity vulnerability in prometheus, published on 4 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-42151 and fix it if it is affected.\n\nWhat it is: CVE-2026-42151 is a high-severity vulnerability in prometheus, published on 4 May 2026. 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-2026-42151 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/prometheus/prometheus (Go): affected from 0.45.2; fixed in 0.311.3\n- github.com/prometheus/prometheus (Go): affected from 0.45.2; fixed in 0.311.3\n- github.com/prometheus/prometheus (Go): affected from 0.45.2; fixed in 0.311.3\n- prometheus (Bitnami): affected all versions; fixed in 0.305.3, 0.311.3, 3.5.3, 3.11.3\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-2026-42151/ (Markdown: https://insights.sbomify.com/CVE-2026-42151/index.md)","id":"CVE-2026-42151","markdown":"https://insights.sbomify.com/CVE-2026-42151/index.md","name":"CVE-2026-42151","record":{"aliases":["AZL-86610","BIT-prometheus-2026-42151","CLEANSTART-2026-BN60910","CLEANSTART-2026-CU14361","CLEANSTART-2026-IR38394","CLEANSTART-2026-KL35365","CLEANSTART-2026-SS73124","CLEANSTART-2026-XX95477","DEBIAN-CVE-2026-42151","ECHO-7f4e-064b-005f","GHSA-wg65-39gg-5wfj","GO-2026-5710","MINI-2392-hxf2-vggj","MINI-252x-m2fr-7w55","MINI-294h-3rw8-w9gh","MINI-2gfj-gjc9-c7p7","MINI-2hm8-hcgg-r9rc","MINI-2p8f-8pf7-8p37","MINI-2rr3-vph6-v64r","MINI-3gcw-3jff-w4cw","MINI-48cp-xj2q-2g8g","MINI-48v8-xphh-q272","MINI-4hg6-w99h-x9h7","MINI-4hg8-64w4-9mch","MINI-4w9h-pw2x-3rxg","MINI-55gr-vhfw-5cc9","MINI-58cx-r2j8-pw94","MINI-5fqf-mwc7-m389","MINI-5p74-whq5-qr7h","MINI-5r3f-483p-g5pm","MINI-5v55-2fpc-97x7","MINI-63f3-hc37-24m9","MINI-665f-mh77-gh9j","MINI-6cmq-4rqm-hjpf","MINI-6gf3-qfxc-x4jf","MINI-74qj-rm7c-6xm4","MINI-77hm-3qfc-fj3v","MINI-7893-pxc4-cw97","MINI-7f7c-7c68-j86q","MINI-7ffq-w779-4jrw","MINI-7pjx-c4j6-qgx3","MINI-82fm-v695-x375","MINI-83w6-88g7-xhmh","MINI-8cj3-78qv-66c4","MINI-8j94-g9xh-65v7","MINI-8jmx-rrwj-hhjf","MINI-8m2q-5586-mvxr","MINI-8r5c-qc96-r8pw","MINI-8w4g-cv7f-62vv","MINI-8wpw-f74q-9958","MINI-964x-cc2j-24pc","MINI-96p9-w675-74r3","MINI-99fp-g339-rj8g","MINI-9h76-46hv-9gcc","MINI-9jj3-6qfx-4776","MINI-9mr2-xj38-xcqw","MINI-9p5h-267c-cqmh","MINI-c4fj-mhc2-379x","MINI-c8vw-677g-69vr","MINI-f4j5-7w5r-7gq8","MINI-f4q4-rxvp-9hw9","MINI-ffp2-3mc3-c6wr","MINI-ffrr-hc56-p3cv","MINI-fg3h-p2qw-wwfj","MINI-fgjc-72rx-fv99","MINI-fm87-rh6v-jmm5","MINI-fq8v-hcrw-fpfj","MINI-g2m9-m5c8-65rj","MINI-g2vr-8mxh-rf5w","MINI-g8j3-v7xp-rcvv","MINI-gc2w-5gv3-rqw3","MINI-gqw7-2cwp-p5xj","MINI-gvg5-rfhj-3669","MINI-gx79-rpch-2vf7","MINI-gxhw-r3qh-47wx","MINI-gxxh-h254-rqpc","MINI-hf47-wgm5-gxrq","MINI-hf6w-j3x4-r2x7","MINI-hg5h-j8cv-x2fw","MINI-hhqj-36hm-gv7v","MINI-hj8p-pgww-8w8c","MINI-hr2w-c68g-35hq","MINI-j3w9-vjgc-v5rf","MINI-j98r-8f9c-cw24","MINI-j9mm-pj2w-c59q","MINI-jmmw-jrm5-qm75","MINI-jqc8-cmpg-q4jh","MINI-jrh3-r5q6-3p8r","MINI-m86q-cpq9-pj3v","MINI-m993-r2v9-pr7x","MINI-mchp-6gj6-p8cw","MINI-mcp5-659j-pvv6","MINI-mph2-wf78-j3v9","MINI-p342-j65q-85f9","MINI-p3rh-4mjv-wj6x","MINI-p58m-x8g8-9v72","MINI-p824-99x7-h73j","MINI-p9jq-5rj5-cgp6","MINI-pf3w-xrh9-6h8p","MINI-pv8q-7r65-2h9j","MINI-pwhc-9cjh-c2c4","MINI-q23h-wc58-jjvg","MINI-q63c-7px2-39mx","MINI-qh2h-6r22-rxww","MINI-qr7q-4694-82pm","MINI-qrg9-xcw7-52cv","MINI-qx63-27jx-pp87","MINI-r28c-7837-423v","MINI-r53v-vm7w-8v42","MINI-r762-4j28-34jw","MINI-r876-xv54-pr75","MINI-r8wr-7hw7-rm53","MINI-r93g-r6m5-g2rc","MINI-rp62-m854-q25r","MINI-v3cw-8p9x-mj6g","MINI-v7hx-h4gf-j5xh","MINI-v838-xx2g-g738","MINI-v8pm-m8cm-rp38","MINI-vhch-2gf4-6qh9","MINI-vhh3-pg4q-52gx","MINI-vmmf-5h49-5mqj","MINI-vmpm-hvw5-465p","MINI-vmw5-gc2x-gf54","MINI-vwxr-6gc8-wc98","MINI-vxh3-9gc4-8gmh","MINI-w6qm-vjjp-xqj4","MINI-w8fq-m6xw-j27q","MINI-w8j2-2r32-4vw5","MINI-wrmf-2fxj-m8xm","MINI-wwvc-gg3c-2vwj","MINI-wxrw-vv45-jfp7","MINI-x4cp-xrqv-h86x","MINI-x758-9q2p-vqrg","MINI-xgqj-389w-p8f5","MINI-xjq3-wrjx-4p82","MINI-xmq6-m5cg-p329","MINI-xwjf-3r28-wfwp","RHSA-2026:25504","ROOT-APP-GOBINARY-CVE-2026-42151","UBUNTU-CVE-2026-42151"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Prometheus monitoring system","requires_auth":"none","summary":"Attackers with access to the config API can read exposed Azure AD OAuth client secrets due to improper redaction in Prometheus remote write configurations.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"prometheus","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-256","name":"Plaintext Storage of a Password"},{"id":"CWE-312","name":"Cleartext Storage of Sensitive Information"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"Prometheus is an open-source monitoring system and time series database. Prior to versions 3.5.3 and 3.11.3, the client_secret field in the Azure AD remote write OAuth configuration (storage/remote/azuread) was typed as string instead of Secret. Prometheus redacts fields of type Secret when serving the configuration via the /-/config HTTP API endpoint. Because the field was a plain string, the Azure OAuth client secret was exposed in plaintext to any user or process with access to that endpoint. This issue has been patched in versions 3.5.3 and 3.11.3.","ecosystems":["Bitnami","Go","Red Hat:hummingbird:1"],"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":"Prometheus Azure AD remote write OAuth client secret exposed via config API","id":"CVE-2026-42151","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"information_disclosure","year":"2026"},"n_packages":5,"n_references":5,"next":{"headline":"Coolify: PostgreSQL Healthcheck Command Injection Allows Root Code Execution in Container","id":"CVE-2026-42153"},"packages":[{"ecosystem":"Bitnami","fixed":["0.305.3","0.311.3","3.5.3","3.11.3"],"introduced":["0","0.306.0","1.0.0","3.6.0"],"last_affected":[],"package":"prometheus","purl":"pkg:bitnami/prometheus","source":"BIT-prometheus-2026-42151"},{"ecosystem":"Go","fixed":["0.311.3"],"introduced":["0.45.2"],"last_affected":[],"package":"github.com/prometheus/prometheus","purl":null,"source":"GHSA-wg65-39gg-5wfj"},{"ecosystem":"Go","fixed":["0.311.3"],"introduced":["0.45.2"],"last_affected":[],"package":"github.com/prometheus/prometheus","purl":"pkg:golang/github.com/prometheus/prometheus","source":"GHSA-wg65-39gg-5wfj"},{"ecosystem":"Go","fixed":["0.311.3"],"introduced":["0.45.2"],"last_affected":[],"package":"github.com/prometheus/prometheus","purl":"pkg:golang/github.com/prometheus/prometheus","source":"GO-2026-5710"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:0.153.0-1.hum1"],"introduced":["0"],"last_affected":[],"package":"opentelemetry-collector-contrib","purl":"pkg:rpm/redhat/opentelemetry-collector-contrib","source":"RHSA-2026:25504"}],"prev":{"headline":"wlc: print_html outputs API data without HTML escaping, enabling stored XSS","id":"CVE-2026-42150"},"products":["prometheus"],"published":"2026-05-04","related":[{"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.5,"headline":"Arbitrary redirects under /new endpoint","id":"CVE-2021-29622","kev_date_added":null,"published":"2021-05-19"},{"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":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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":"2026-09-10","vendors":["prometheus"]},"summary":"Attackers with access to the config API can read exposed Azure AD OAuth client secrets due to improper redaction in Prometheus remote write configurations.","url":"https://insights.sbomify.com/CVE-2026-42151/"}