[{"uuid":"GSA_kwCzR0hTQS1mdzhnLWNnOGYtOWoyOM4ABWNw","url":"https://github.com/advisories/GHSA-fw8g-cg8f-9j28","title":"Prometheus vulnerable to stored XSS via crafted histogram bucket label values in the old web UI heatmap display","description":"### Impact\n\nIn the Prometheus server's legacy web UI (enabled via the command-line flag `--enable-feature=old-ui`), the histogram heatmap chart view does not escape `le` label values when inserting them into the HTML for use as axis tick mark labels.\n\nAn attacker who can inject crafted metrics (e.g. via a compromised scrape target, remote write, or OTLP receiver endpoint) can execute JavaScript in the browser of any Prometheus user who views the metric in the heatmap chart UI. From the XSS context, an attacker could for example:\n\n- Read `/api/v1/status/config` to extract sensitive configuration (although credentials / secrets are redacted by the server)\n- Call `/-/quit` to shut down Prometheus (only if `--web.enable-lifecycle` is set)\n- Call `/api/v1/admin/tsdb/delete_series` to delete data (only if `--web.enable-admin-api` is set)\n- Exfiltrate metric data to an external server\n\nNote that this only affects users who have explicitly enabled the legacy Prometheus web UI using the `--enable-feature=old-ui` command-line flag.\n\n### Patches\n\nhttps://github.com/prometheus/prometheus/commit/38f23b9075ced1de2b82d2dad8b2bebb1ecd5b7d\n\n### Workarounds\n\nIf at all possible, disable the legacy web UI by removing the `--enable-feature=old-ui` command-line flag).\n\nIf this is not an option, take the following precautions:\n\n- If using the remote write receiver (`--web.enable-remote-write-receiver`), ensure it is not exposed to untrusted sources.\n- If using the OTLP receiver (`--web.enable-otlp-receiver`), ensure it is not exposed to untrusted sources.\n- Ensure scrape targets are trusted and not under attacker control.\n- Do not enable admin / mutating API endpoints (e.g. `--web.enable-admin-api` or `web.enable-lifecycle`) in cases where you cannot prevent untrusted data from being ingested.\n- Users should avoid clicking untrusted links, especially those containing functions such as `label_replace`, as they may generate poisoned label names and values.\n\n### References\n\n- CVE-2019-10215 — prior stored DOM XSS vulnerability in Prometheus query history, fixed in v2.7.2\n- CVE-2026-40179 — prior stored DOM XSS vulnerability in Prometheus web UI (hover tooltips and metrics explorer), fixed in v3.11.2","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2026-05-05T21:53:18.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":5.1,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","references":["https://github.com/prometheus/prometheus/security/advisories/GHSA-fw8g-cg8f-9j28","https://github.com/prometheus/prometheus/commit/38f23b9075ced1de2b82d2dad8b2bebb1ecd5b7d","https://nvd.nist.gov/vuln/detail/CVE-2026-44903","https://github.com/advisories/GHSA-fw8g-cg8f-9j28"],"source_kind":"github","identifiers":["GHSA-fw8g-cg8f-9j28","CVE-2026-44903"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-05-05T22:00:08.299Z","updated_at":"2026-11-14T06:04:32.058Z","epss_percentage":0.00204,"epss_percentile":0.10499,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1mdzhnLWNnOGYtOWoyOM4ABWNw","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS1mdzhnLWNnOGYtOWoyOM4ABWNw","packages":[{"ecosystem":"go","package_name":"github.com/prometheus/prometheus","versions":[{"first_patched_version":"0.311.3","vulnerable_version_range":"\u003c 0.311.3"}],"purl":"pkg:go/github.com%2Fprometheus%2Fprometheus"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1mdzhnLWNnOGYtOWoyOM4ABWNw/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS04cm0yLTdxcWYtMzRxbc4ABWMr","url":"https://github.com/advisories/GHSA-8rm2-7qqf-34qm","title":"Prometheus: Remote read endpoint allows denial of service via crafted snappy payload","description":"### Impact\n\nThe remote read endpoint (`/api/v1/read`) does not validate the declared decoded length in a snappy-compressed request body before allocating memory.\nAn unauthenticated attacker can send a small payload that causes a huge heap allocation per request. Under concurrent load this can exhaust available memory and crash the Prometheus process.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nFixed in 3.11.3 and 3.5.3 LTS. Users should upgrade to these versions or later.\n\n### Workarounds\nUser who can not upgrade can place Prometheus behind a reverse proxy or firewall that requires authentication before requests reach /api/v1/read.","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2026-05-05T19:34:05.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":7.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","references":["https://github.com/prometheus/prometheus/security/advisories/GHSA-8rm2-7qqf-34qm","https://nvd.nist.gov/vuln/detail/CVE-2026-42154","https://github.com/prometheus/prometheus/pull/18584","https://github.com/prometheus/prometheus/pull/18585","https://github.com/prometheus/prometheus/releases/tag/v3.11.3","https://github.com/prometheus/prometheus/releases/tag/v3.5.3","https://github.com/advisories/GHSA-8rm2-7qqf-34qm"],"source_kind":"github","identifiers":["GHSA-8rm2-7qqf-34qm","CVE-2026-42154"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-05-05T20:00:08.440Z","updated_at":"2026-11-14T06:03:48.366Z","epss_percentage":0.00813,"epss_percentile":0.57533,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04cm0yLTdxcWYtMzRxbc4ABWMr","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS04cm0yLTdxcWYtMzRxbc4ABWMr","packages":[{"ecosystem":"go","package_name":"github.com/prometheus/prometheus","versions":[{"first_patched_version":null,"vulnerable_version_range":"\u003e= 1.0.0-rc.0, \u003c= 2.5.0"},{"first_patched_version":"0.305.2","vulnerable_version_range":"\u003c 0.305.2"},{"first_patched_version":"0.311.3","vulnerable_version_range":"\u003e= 0.306.0, \u003c 0.311.3"}],"purl":"pkg:go/github.com%2Fprometheus%2Fprometheus"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04cm0yLTdxcWYtMzRxbc4ABWMr/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS13ZzY1LTM5Z2ctNXdmas4ABWMq","url":"https://github.com/advisories/GHSA-wg65-39gg-5wfj","title":"Prometheus Azure AD remote write OAuth client secret exposed via config API","description":"### Impact\n\nUsers who use Azure AD remote write with OAuth authentication are impacted.\n\nThe `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.\n\n### Patches\n\nThe problem has been patched by changing `ClientSecret` in `OAuthConfig` to `Secret`. Users should upgrade to 3.11.3 or 3.5.3 LTS.\n\n### Workarounds\n\nUsers  who can not upgrade can switch to Managed Identity or Workload Identity authentication for Azure AD remote write, which do not involve a client secret.","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2026-05-05T19:33:47.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":7.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","references":["https://github.com/prometheus/prometheus/security/advisories/GHSA-wg65-39gg-5wfj","https://nvd.nist.gov/vuln/detail/CVE-2026-42151","https://github.com/prometheus/prometheus/pull/18587","https://github.com/prometheus/prometheus/pull/18590","https://github.com/prometheus/prometheus/releases/tag/v3.11.3","https://github.com/prometheus/prometheus/releases/tag/v3.5.3","https://access.redhat.com/errata/RHSA-2026:42852","https://access.redhat.com/errata/RHSA-2026:43052","https://access.redhat.com/errata/RHSA-2026:44622","https://access.redhat.com/errata/RHSA-2026:47149","https://access.redhat.com/errata/RHSA-2026:47952","https://access.redhat.com/errata/RHSA-2026:50843","https://access.redhat.com/errata/RHSA-2026:50874","https://access.redhat.com/errata/RHSA-2026:53412","https://access.redhat.com/errata/RHSA-2026:53413","https://access.redhat.com/errata/RHSA-2026:53415","https://access.redhat.com/errata/RHSA-2026:53530","https://access.redhat.com/errata/RHSA-2026:54288","https://access.redhat.com/errata/RHSA-2026:54427","https://access.redhat.com/errata/RHSA-2026:56340","https://access.redhat.com/errata/RHSA-2026:57191","https://access.redhat.com/security/cve/CVE-2026-42151","https://bugzilla.redhat.com/show_bug.cgi?id=2466507","https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42151.json","https://access.redhat.com/errata/RHSA-2026:25039","https://access.redhat.com/errata/RHSA-2026:25245","https://access.redhat.com/errata/RHSA-2026:25504","https://access.redhat.com/errata/RHSA-2026:34357","https://access.redhat.com/errata/RHSA-2026:34359","https://access.redhat.com/errata/RHSA-2026:36651","https://access.redhat.com/errata/RHSA-2026:36796","https://access.redhat.com/errata/RHSA-2026:36797","https://access.redhat.com/errata/RHSA-2026:37267","https://access.redhat.com/errata/RHSA-2026:37271","https://access.redhat.com/errata/RHSA-2026:37272","https://access.redhat.com/errata/RHSA-2026:40118","https://access.redhat.com/errata/RHSA-2026:40262","https://access.redhat.com/errata/RHSA-2026:40768","https://access.redhat.com/errata/RHSA-2026:40945","https://access.redhat.com/errata/RHSA-2026:40970","https://access.redhat.com/errata/RHSA-2026:40972","https://access.redhat.com/errata/RHSA-2026:40974","https://access.redhat.com/errata/RHSA-2026:41019","https://access.redhat.com/errata/RHSA-2026:41030","https://access.redhat.com/errata/RHSA-2026:41031","https://access.redhat.com/errata/RHSA-2026:41066","https://access.redhat.com/errata/RHSA-2026:42146","https://access.redhat.com/errata/RHSA-2026:42796","https://access.redhat.com/errata/RHSA-2026:60386","https://access.redhat.com/errata/RHSA-2026:60387","https://access.redhat.com/errata/RHSA-2026:60388","https://access.redhat.com/errata/RHSA-2026:60389","https://access.redhat.com/errata/RHSA-2026:60390","https://access.redhat.com/errata/RHSA-2026:60391","https://access.redhat.com/errata/RHSA-2026:60441","https://access.redhat.com/errata/RHSA-2026:60477","https://access.redhat.com/errata/RHSA-2026:63103","https://github.com/advisories/GHSA-wg65-39gg-5wfj"],"source_kind":"github","identifiers":["GHSA-wg65-39gg-5wfj","CVE-2026-42151"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-05-05T20:00:08.440Z","updated_at":"2026-11-06T02:04:14.868Z","epss_percentage":0.00352,"epss_percentile":0.28583,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS13ZzY1LTM5Z2ctNXdmas4ABWMq","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS13ZzY1LTM5Z2ctNXdmas4ABWMq","packages":[{"ecosystem":"go","package_name":"github.com/prometheus/prometheus","versions":[{"first_patched_version":"0.311.3","vulnerable_version_range":"\u003e= 0.45.2, \u003c 0.311.3"}],"purl":"pkg:go/github.com%2Fprometheus%2Fprometheus"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS13ZzY1LTM5Z2ctNXdmas4ABWMq/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS12ZmZoLXg2cjgteHg5Oc4ABVLK","url":"https://github.com/advisories/GHSA-vffh-x6r8-xx99","title":"Prometheus has Stored XSS via metric names and label values in Prometheus web UI tooltips and metrics explorer","description":"### Impact\n\nStored cross-site scripting (XSS) via crafted metric names in the Prometheus web UI:\n\n* **Old React UI + New Mantine UI:** When a user hovers over a chart tooltip on the Graph page, metric names containing HTML/JavaScript are injected into `innerHTML` without escaping, causing arbitrary script execution in the user's browser.\n* **Old React UI only:** When a user opens the Metric Explorer (globe icon next to the PromQL expression input field), and a metric name containing HTML/JavaScript is rendered in the fuzzy search results, it is injected into `innerHTML` without escaping, causing arbitrary script execution in the user's browser.\n* **Old React UI only:** When a user views a heatmap chart and hovers over a cell, the `le` label values of the underlying histogram buckets are interpolated into `innerHTML` without escaping. While `le` is conventionally a numeric bucket boundary, Prometheus does not enforce this — arbitrary UTF-8 strings are accepted as label values, allowing script injection via a crafted scrape target or remote write.\n\nWith Prometheus v3.x defaulting to UTF-8 metric and label name validation, characters like `\u003c`, `\u003e`, and `\"` are now valid in metric names and labels, making this exploitable.\n\nAn attacker who can inject metrics (via a compromised scrape target, remote write, or OTLP receiver endpoint) can execute JavaScript in the browser of any Prometheus user who views the metric in the Graph UI. From the XSS context, an attacker could for example:\n\n- Read `/api/v1/status/config` to extract sensitive configuration (although credentials / secrets are redacted by the server)\n- Call `/-/quit` to shut down Prometheus (only if `--web.enable-lifecycle` is set)\n- Call `/api/v1/admin/tsdb/delete_series` to delete data (only if `--web.enable-admin-api` is set)\n- Exfiltrate metric data to an external server\n\nBoth the new Mantine UI and the old React UI are affected. The vulnerable code paths are:\n\n- `web/ui/mantine-ui/src/pages/query/uPlotChartHelpers.ts` — tooltip `innerHTML` with unescaped `labels.__name__`\n- `web/ui/react-app/src/pages/graph/GraphHelpers.ts` — tooltip content with unescaped `labels.__name__`\n- `web/ui/react-app/src/pages/graph/MetricsExplorer.tsx` — fuzzy search results rendered via `dangerouslySetInnerHTML` without sanitization\n- `web/ui/react-app/src/vendor/flot/jquery.flot.heatmap.js` — heatmap tooltip with unescaped label values\n\n### Patches\n\nA patch has been published in Prometheus 3.5.2 LTS and Prometheus 3.11.2. The fix applies `escapeHTML()` to all user-controlled values (metric names and label values) before inserting them into `innerHTML`. This advisory will be updated with the patched version once released.\n\n### Workarounds\n\n- If using the remote write receiver (`--web.enable-remote-write-receiver`), ensure it is not exposed to untrusted sources.\n- If using the OTLP receiver (`--web.enable-otlp-receiver`), ensure it is not exposed to untrusted sources.\n- Ensure scrape targets are trusted and not under attacker control.\n- Do not enable admin / mutating API endpoints (e.g. `--web.enable-admin-api` or `web.enable-lifecycle`) in cases where you cannot prevent untrusted data from being ingested.\n- Users should avoid clicking untrusted links, especially those containing functions such as label_replace, as they may generate poisoned label names and values.\n\n### References\n\n- CVE-2019-10215 — prior stored DOM XSS vulnerability in Prometheus query history, fixed in v2.7.2\n\n### Acknowledgements\n\nThanks to @gladiator9797 (Duc Anh Nguyen from TinyxLab) for reporting this.","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2026-04-13T16:39:16.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":5.3,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","references":["https://github.com/prometheus/prometheus/security/advisories/GHSA-vffh-x6r8-xx99","https://github.com/prometheus/prometheus/pull/18506","https://github.com/prometheus/prometheus/commit/07c6232d159bfb474a077788be184d87adcfac3c","https://nvd.nist.gov/vuln/detail/CVE-2026-40179","https://github.com/advisories/GHSA-vffh-x6r8-xx99"],"source_kind":"github","identifiers":["GHSA-vffh-x6r8-xx99","CVE-2026-40179"],"repository_url":null,"blast_radius":0.0,"created_at":"2026-04-13T17:00:20.961Z","updated_at":"2026-11-16T07:05:03.782Z","epss_percentage":0.00323,"epss_percentile":0.25619,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS12ZmZoLXg2cjgteHg5Oc4ABVLK","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS12ZmZoLXg2cjgteHg5Oc4ABVLK","packages":[{"ecosystem":"go","package_name":"github.com/prometheus/prometheus","versions":[{"first_patched_version":"3.11.2","vulnerable_version_range":"\u003e= 3.6.0, \u003c= 3.11.1"},{"first_patched_version":"3.5.2","vulnerable_version_range":"\u003e= 3.0.0, \u003c= 3.5.1"},{"first_patched_version":"0.311.2-0.20260410083055-07c6232d159b","vulnerable_version_range":"\u003c 0.311.2-0.20260410083055-07c6232d159b"}],"purl":"pkg:go/github.com%2Fprometheus%2Fprometheus"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS12ZmZoLXg2cjgteHg5Oc4ABVLK/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS0zbTg3LTU1OTgtMnY0Zs4AA3vk","url":"https://github.com/advisories/GHSA-3m87-5598-2v4f","title":"Withdrawn Advisory: Prometheus XSS Vulnerability","description":"## Withdrawn Advisory\nThis advisory has been withdrawn because the vulnerability does not apply to the Prometheus golang package. This link is maintained to preserve external references.\n\n## Original Description\nA stored, DOM based, cross-site scripting (XSS) flaw was found in Prometheus before version 2.7.1. An attacker could exploit this by convincing an authenticated user to visit a crafted URL on a Prometheus server, allowing for the execution and persistent storage of arbitrary scripts.","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2023-12-13T21:26:54.000Z","withdrawn_at":"2023-12-18T20:53:30.000Z","classification":"GENERAL","cvss_score":5.4,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","references":["https://nvd.nist.gov/vuln/detail/CVE-2019-3826","https://github.com/prometheus/prometheus/pull/5163","https://github.com/prometheus/prometheus/pull/5163/commits/ea254eea5e3c9a12d6f37a25921b7259ff1c4280","https://github.com/prometheus/prometheus/commit/62e591f9","https://access.redhat.com/errata/RHBA-2019:0327","https://advisory.checkmarx.net/advisory/CX-2019-4297","https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3826","https://lists.apache.org/thread.html/r48d5019bd42e0770f7e5351e420a63a41ff1f16924942442c6aff6a8@%3Ccommits.zookeeper.apache.org%3E","https://lists.apache.org/thread.html/r8e3f7da12bf5750b0a02e69a78a61073a2ac950eed7451ce70a65177@%3Ccommits.zookeeper.apache.org%3E","https://lists.apache.org/thread.html/rdf2a0d94c3b5b523aeff7741ae71347415276062811b687f30ea6573@%3Ccommits.zookeeper.apache.org%3E","https://github.com/aquasecurity/trivy/issues/2992","https://gitlab.com/gitlab-org/security-products/gemnasium-db/-/merge_requests/26608","https://github.com/advisories/GHSA-3m87-5598-2v4f"],"source_kind":"github","identifiers":["GHSA-3m87-5598-2v4f","CVE-2019-3826"],"repository_url":"https://github.com/prometheus/prometheus","blast_radius":0.0,"created_at":"2023-12-13T22:05:57.704Z","updated_at":"2026-11-11T06:14:14.857Z","epss_percentage":0.02497,"epss_percentile":0.84687,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS0zbTg3LTU1OTgtMnY0Zs4AA3vk","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS0zbTg3LTU1OTgtMnY0Zs4AA3vk","packages":[{"ecosystem":"go","package_name":"github.com/prometheus/prometheus","versions":[{"first_patched_version":"2.7.1","vulnerable_version_range":"\u003c 2.7.1"}],"purl":"pkg:go/github.com%2Fprometheus%2Fprometheus"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS0zbTg3LTU1OTgtMnY0Zs4AA3vk/related_packages","related_advisories":[]},{"uuid":"GSA_kwCzR0hTQS00djQ4LTRxNW0tOHZ4NM4AAwJ2","url":"https://github.com/advisories/GHSA-4v48-4q5m-8vx4","title":"Prometheus vulnerable to basic authentication bypass","description":"### Impact\n\nPrometheus can be secured by a web.yml file that specifies usernames and hashed passwords for basic authentication.\n\nPasswords are hashed with bcrypt, which means that even if you have access to the hash, it is very hard to find the original password back.\n\nHowever, a flaw in the way this mechanism was implemented in the [exporter toolkit](https://github.com/prometheus/exporter-toolkit) makes it possible with people who know the hashed password to authenticate against Prometheus.\n\nA request can be forged by an attacker to poison the internal cache used to cache the computation of hashes and make subsequent requests successful. This cache is used in both happy and unhappy scenarios in order to limit side channel attacks that could tell an attacker if a user is present in the file or not.\n\n### Patches\n\nPrometheus 2.37.4 ([LTS](https://prometheus.io/docs/introduction/release-cycle/)) and 2.40.4 have been released to address this issue.\n\n### Workarounds\n\nThere is no workaround but attacker must have access to the hashed password, stored in disk, to bypass the authentication.\n\n### Credit\n\nWe want to thank Lei Wan for reporting this security issue.","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2022-12-05T22:01:08.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":7.2,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","references":["https://github.com/prometheus/prometheus/security/advisories/GHSA-4v48-4q5m-8vx4","https://github.com/prometheus/prometheus/commit/31a2db3ae9c0f4b486b6895973beabc1d1beac93","https://github.com/prometheus/prometheus/releases/tag/v2.37.4","https://github.com/prometheus/prometheus/releases/tag/v2.40.4","https://github.com/advisories/GHSA-4v48-4q5m-8vx4"],"source_kind":"github","identifiers":["GHSA-4v48-4q5m-8vx4"],"repository_url":"https://github.com/prometheus/prometheus","blast_radius":0.0,"created_at":"2022-12-21T16:11:47.271Z","updated_at":"2026-11-14T06:15:15.812Z","epss_percentage":null,"epss_percentile":null,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS00djQ4LTRxNW0tOHZ4NM4AAwJ2","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS00djQ4LTRxNW0tOHZ4NM4AAwJ2","packages":[{"ecosystem":"go","package_name":"github.com/prometheus/prometheus/v2","versions":[{"first_patched_version":"2.40.4","vulnerable_version_range":"\u003e= 2.38.0, \u003c 2.40.4"},{"first_patched_version":"2.37.4","vulnerable_version_range":"\u003e= 2.24.1, \u003c 2.37.4"}],"purl":"pkg:go/github.com%2Fprometheus%2Fprometheus%2Fv2"},{"ecosystem":"go","package_name":"github.com/prometheus/prometheus","versions":[{"first_patched_version":"2.40.4","vulnerable_version_range":"\u003e= 2.38.0, \u003c 2.40.4"},{"first_patched_version":"2.37.4","vulnerable_version_range":"\u003e= 2.24.1, \u003c 2.37.4"}],"purl":"pkg:go/github.com%2Fprometheus%2Fprometheus"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS00djQ4LTRxNW0tOHZ4NM4AAwJ2/related_packages","related_advisories":[]},{"uuid":"MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXZ4NTctN2Y0cS1mcGM3","url":"https://github.com/advisories/GHSA-vx57-7f4q-fpc7","title":"Arbitrary redirects under /new endpoint","description":"### Impact\n\nIn 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 /.\nDue 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.\n\nIf a user visits a prometheus server with a specially crafted address (e.g.: `http://127.0.0.1:9090/new/new\u003curl\u003e`), they can be redirected to an arbitrary URL.\n\ne.g. if a user visits http://127.0.0.1:9090/new/newhttp://www.google.com/, they will be redirected to http://google.com.\n\n### Patches\n\nThe issue will be patched in 2.26.1 and 2.27.1 releases.\nIn 2.28.0, the /new endpoint will be removed completely.\n\n### Workarounds\n\nThe workaround is to disable access to /new via a reverse proxy in front of Prometheus.\n\nNote: Users who use a `--web.external-url=` flag _with a path_ (e.g.  `--web.external-url=http://example.com/prometheus`) are not affected.\n\n### For more information\n\nIf you have any questions or comments about this advisory, please use our community channels (https://prometheus.io/community).\nOur security policy is available at https://prometheus.io/docs/operating/security/","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2022-02-15T01:57:18.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":6.1,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","references":["https://github.com/prometheus/prometheus/security/advisories/GHSA-vx57-7f4q-fpc7","https://nvd.nist.gov/vuln/detail/CVE-2021-29622","https://github.com/prometheus/prometheus/releases/tag/v2.26.1","https://github.com/prometheus/prometheus/releases/tag/v2.27.1","https://github.com/advisories/GHSA-vx57-7f4q-fpc7"],"source_kind":"github","identifiers":["GHSA-vx57-7f4q-fpc7","CVE-2021-29622"],"repository_url":"https://github.com/prometheus/prometheus","blast_radius":0.0,"created_at":"2022-12-21T16:13:02.199Z","updated_at":"2026-11-16T07:17:24.494Z","epss_percentage":0.1956,"epss_percentile":0.97037,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXZ4NTctN2Y0cS1mcGM3","html_url":"https://advisories.ecosyste.ms/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXZ4NTctN2Y0cS1mcGM3","packages":[{"ecosystem":"go","package_name":"github.com/prometheus/prometheus","versions":[{"first_patched_version":"0.0.0-20210518124745-db7f0bcec27b","vulnerable_version_range":"\u003e 0.0.0-20201116123734-de1c1243f4dd, \u003c 0.0.0-20210518124745-db7f0bcec27b"},{"first_patched_version":"2.27.1","vulnerable_version_range":"= 2.27.0"},{"first_patched_version":"2.26.1","vulnerable_version_range":"\u003e= 2.23.0, \u003c 2.26.1"}],"purl":"pkg:go/github.com%2Fprometheus%2Fprometheus"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXZ4NTctN2Y0cS1mcGM3/related_packages","related_advisories":[]}]