# What is CVE-2026-40179?

> CVE-2026-40179 is a medium-severity flaw (CVSS 5.3) in Prometheus, published on 15 April 2026. It is not on the list of flaws known to be exploited today. The latest forecast puts its chance of use in the next 30 days at 0.4%. If you run an affected version, plan in the vendor’s fix.

Canonical page: https://www.edgeprotect.io/what-is/cve-2026-40179

## At a glance

- **Verdict:** Plan it in. No sign of exploitation and a low forecast. Patch it in your normal update cycle.
- **EdgeProtect risk score:** 20 out of 100 (Low); action: Monitor. Kept up to date as the evidence changes.
- **Severity:** Medium (CVSS 5.3 out of 10)
- **Known to be exploited:** No, not on the list of flaws known to be exploited today
- **Chance of use in the next 30 days:** 0.4% (latest exploit-likelihood forecast)
- **Published:** 15 April 2026
- **Record last updated:** 17 June 2026
- **Main product:** Prometheus
- **Affected products:** 1

## What is CVE-2026-40179? In plain terms

It can be attacked from anywhere on the internet without logging in, but a person has to take an action first.

### The official description

Prometheus is an open-source monitoring system and time series database. Versions 3.0 through 3.5.1 and 3.6.0 through 3.11.1 have stored cross-site scripting vulnerabilities in multiple components of the Prometheus web UI where metric names and label values are injected into innerHTML without escaping. In both the Mantine UI and old React UI, chart tooltips on the Graph page render metric names containing HTML/JavaScript without sanitization. In the old React UI, the Metric Explorer fuzzy search results use dangerouslySetInnerHTML without escaping, and heatmap cell tooltips interpolate le label values without sanitization. With Prometheus v3.x defaulting to UTF-8 metric and label name validation, characters like , and " are now valid in metric names and labels. An attacker who can inject metrics via a compromised scrape target, remote write, or OTLP receiver endpoint can execute arbitrary JavaScript in the browser of any Prometheus user who views the metric in the Graph UI, potentially enabling configuration exfiltration, data deletion, or Prometheus shutdown depending on enabled flags. This issue has been fixed in versions 3.5.2 and 3.11.2. If developers are unable to immediately update, the following workarounds are recommended: ensure that the remote write receiver (--web.enable-remote-write-receiver) and the OTLP receiver (--web.enable-otlp-receiver) are not exposed to untrusted sources; verify that all scrape targets are trusted and not under attacker control; avoid enabling admin or mutating API endpoints (e.g., --web.enable-admin-api or --web.enable-lifecycle) in environments where untrusted data may be ingested; and refrain from clicking untrusted links, particularly those containing functions such as label_replace, as they may generate poisoned label names and values.

### What kind of flaw is it?

- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

### How an attack on it works

- Where an attacker can be: Anywhere on the internet
- How hard it is to pull off: Easy: no special conditions
- Login needed first: No login needed
- Does someone have to click: Yes, a person has to take an action

Severity 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## Is CVE-2026-40179 being exploited? Not that we know of

It is not on the list of flaws known to be exploited today. The latest forecast puts the chance of it being used in the next 30 days at 0.4%. That can change at any time, which is why we keep watching.

Exploit likelihood over the last 7 days: 0.3%, 0.3%, 0.3%, 0.3%, 0.3%, 0.4%, 0.4%.

### Timeline

- 15 April 2026: Published
- 17 June 2026: Record last updated

### How EdgeProtect ranks it

CVE-2026-40179 scores **20 out of 100 (Low)**, with the action "Monitor".

Every published flaw gets a risk score from 0 to 100, kept up to date as the evidence changes. Four things go into the score, from the one that counts most to the ones that count less:

- Evidence it is being exploited: biggest factor
- How severe it is: strong factor
- How widely exposed it is: key context
- Real threat activity around it: key context

85 and above is Critical. Anything confirmed as exploited is always marked for an emergency patch, whatever its score. When this flaw matches software you track, it lands in your list with its score and the reasons behind it.

## Who is affected by CVE-2026-40179?

The published record lists 1 product. Versions are as published: "3.0.0 to before 3.5.2" means from 3.0.0 up to, but not including, 3.5.2.

- [Prometheus](https://www.edgeprotect.io/product/prometheus/prometheus) by [Prometheus](https://www.edgeprotect.io/vendors/prometheus) (Application): 3.0.0 to before 3.5.2, 3.6.0 to before 3.11.2

## How do I fix CVE-2026-40179?

1. **Check whether you run it.** Compare your versions with the affected products above. Not sure what you run? EdgeProtect can work it out from your public website, or you can pick it from a list.
2. **Apply the vendor’s fix.** Install the update named in the vendor’s advisory. We’ve put the advisories and patch notes first in the list.
3. **If you can’t patch today.** Follow any mitigation the vendor publishes, and limit who can reach the affected system from the internet until the update is in.
4. **Keep an eye on it.** Track the product and we tell you as soon as we spot this flaw on the list of exploited flaws, or a jump in its exploit likelihood.

### References

- [github.com](https://github.com/prometheus/prometheus/commit/07c6232d159bfb474a077788be184d87adcfac3c) (Patch)
- [github.com](https://github.com/prometheus/prometheus/pull/18506) (Issue tracking, Patch)
- [github.com](https://github.com/prometheus/prometheus/security/advisories/GHSA-vffh-x6r8-xx99) (Mitigation, Vendor advisory)

## Questions

### What is CVE-2026-40179?

CVE-2026-40179 is a medium-severity flaw in Prometheus, published on 15 April 2026. It can be attacked from anywhere on the internet without logging in, but a person has to take an action first.

### How serious is CVE-2026-40179?

It scores 5.3 out of 10 on the CVSS severity scale, which is medium. Our risk score for CVE-2026-40179 is 20 out of 100, which is Low. Its action is "Monitor". No sign of exploitation and a low forecast. Patch it in your normal update cycle.

### Is CVE-2026-40179 being exploited?

It is not on the list of flaws known to be exploited today. The latest forecast puts the chance of it being used in the next 30 days at 0.4%. That can change at any time, which is why we keep watching.

### Which versions does CVE-2026-40179 affect?

For Prometheus: 3.0.0 to before 3.5.2, 3.6.0 to before 3.11.2.

### How do I fix CVE-2026-40179?

Install the update the vendor names in its advisory, linked first under "How do I fix" on this page. If you can't patch today, follow the vendor's mitigation and limit who can reach the affected system from the internet.

## Does CVE-2026-40179 affect you?

EdgeProtect keeps checking for you:

- **Tell us what you run.** Pick your software from a list, or let us work it out from your website.
- **We match it to every flaw.** Over 400,000 published flaws, checked against your list.
- **Ranked by real-world risk.** Every flaw gets a 0 to 100 risk score, kept up to date, led by evidence criminals are using it.
- **Told as soon as we know.** An alert by email, in the app or by webhook to your own tools.

Start free (no card, nothing to install): https://www.edgeprotect.io/register
Book a demo: https://www.edgeprotect.io/demo

