NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐹
🐹 Go
Not in CISA KEV
MEDIUM severity

CVE-2019-10223 — kube-state-metrics

MEDIUMFix: kubernetes/kube-state-metrics@03122fe

CVE-2019-10223 is a medium-severity (CVSS 6.5) Information Exposure vulnerability in github.com/kubernetes/kube-state-metrics. 1 public exploit or proof-of-concept reference is indexed, so weaponization risk is real. A fix is available for github.com/kubernetes/kube-state-metrics — see the affected versions and patch details below.

Duplicate Advisory: k8s.io/kube-state-metrics Exposure of Sensitive Information

Published
Updated
Affected
2 pkgs
Patched
2 / 2
Exploits
1 known
Exploitation data as of Nov 6, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
1.8%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs78th percentile — riskier than 78% of all scored CVEsHighest risk
0.57%1.14%1.71%2.28%1.1%1.8%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

2 pkgs affected
🐹github.com/kubernetes/kube-state-metrics🐹k8s.io/kube-state-metrics

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.

Description

A security issue was discovered in the kube-state-metrics versions v1.7.0 and v1.7.1. An experimental feature was added to the v1.7.0 release that enabled annotations to be exposed as metrics. By default, the kube-state-metrics metrics only expose metadata about Secrets. However, a combination of the default kubectl behavior and this new feature can cause the entire secret content to end up in metric labels thus inadvertently exposing the secret content in metrics. This feature has been reverted and released as the v1.7.2 release. If you are running the v1.7.0 or v1.7.1 release, please upgrade to the v1.7.2 release as soon as possible.

Affected Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
🐹Gogithub.com/kubernetes/kube-state-metrics≥ 1.7.0&&< 1.7.21.7.2go get github.com/kubernetes/kube-state-metrics@v1.7.2
🐹Gok8s.io/kube-state-metrics≥ 1.7.0&&< 1.7.21.7.2go get k8s.io/kube-state-metrics@v1.7.2

Affected Products

2 products · 5 configurations
Application
kube-state-metricskubernetes
2 versions
1.7.01.7.1
Application
openshift container platformredhat
3 versions
3.114.14.2
Exploits & PoCs
1

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/kubernetes/kube-state-metrics, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update github.com/kubernetes/kube-state-metrics to 1.7.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2019-10223 is resolved across your whole dependency graph.

  3. Workarounds

    Assume what was exposed is already known: rotate any credential, token or key that the affected component could return, restrict the endpoint to callers that genuinely need it, and strip sensitive fields from responses and error output at the boundary rather than relying on the client not to read them.

Frequently Asked Questions

A security issue was discovered in the kube-state-metrics versions v1.7.0 and v1.7.1. An experimental feature was added to the v1.7.0 release that enabled annotations to be exposed as metrics. By default, the kube-state-metrics metrics only expose metadata about Secrets. However, a combination of the default `kubectl` behavior and this new feature can cause the entire secret content to end up in metric labels thus inadvertently exposing the secret content in metrics. This feature has been reverted and released as the v1.7.2 release. If you are running the v1.7.0 or v1.7.1 release, please upgra
O3 Security · Impact-Aware SCA

Is CVE-2019-10223 in your dependencies?

Find it across Go, including transitive dependencies.

CVE-2019-10223: kube-state-metrics — Fixed in 1.7.2