Check whether you run an affected Prometheus version:
prometheus --version
Upgrade to the fixed release for your branch: 3.12.0, 3.11.2, 3.5.2.Vendor announcement
Using distro packages? Distros backport fixes under their own version numbers. Check your distro's status for CVE-2026-40179:Debian · Ubuntu · Red Hat · Alpine