If a container security scanner flagged your kube-state-metrics image with finding ID PRISMA-2022-0227, here's exactly what it means, why it appears, and how to resolve it.

PRISMA-2022-0227 Is Not a CVE

PRISMA-2022-0227 is a Palo Alto Networks Prisma Cloud (formerly Twistlock) proprietary vulnerability-database finding ID — it is scanner-specific, not a CVE assigned by MITRE/NVD. That's why searching CVE databases directly for this exact string often comes up empty; you have to trace it back to the underlying library issue instead.

What It Actually Flags

Affected modulegithub.com/emicklei/go-restful/v3, versions prior to v3.10.1
Issue typeAuthentication Bypass by Primary Weakness
Root causeAn inconsistency in how go-restful parses URL paths, which can cause routing/security-check mismatches in front of it (e.g. a reverse proxy and the application disagreeing on the effective path)
SeverityHigh — CVSS 7.5
FixUpgrade go-restful to v3.10.1 or later — see the upstream go-restful advisory

Why It Shows Up in kube-state-metrics Scans

kube-state-metrics doesn't call go-restful's HTTP routing directly for its own /metrics endpoint. The module is pulled in transitively through k8s.io/client-go and k8s.io/apimachinery, which vendor go-restful as part of their API-machinery tooling. Any Go binary built against those Kubernetes client libraries will show go-restful in its dependency tree (and therefore in an SBOM/vulnerability scan), whether or not the binary ever exercises the vulnerable routing path.

ℹ️
This is the same reason PRISMA-2022-0227 shows up across a wide range of unrelated Kubernetes-adjacent projects — Terraform providers, Kong's ingress controller, cri-tools, sealed-secrets — anything built against client-go/apimachinery from that era inherits the same transitive dependency.

How to Remediate

  1. Update the image. Pull a current kube-state-metrics release — see the Docker image & version guide for tags and the registry path. Recent releases build against updated client-go/apimachinery versions that carry the patched go-restful.
  2. Verify the fix. Run your scanner against the new image and confirm the finding is gone, or check the binary's embedded module list:
    skopeo inspect docker://registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.19.1 | grep -i go-restful
    # or, if you have the binary:
    go version -m ./kube-state-metrics | grep go-restful
  3. If you're already patched but still flagged, your scanner may be matching on the vendored module path rather than the resolved version — check the actual resolved version in go.sum/the SBOM rather than trusting a version-string match alone, and file a waiver/exception in Prisma Cloud referencing the confirmed patched version.

FAQ

Is PRISMA-2022-0227 a CVE?

No — it's a Prisma Cloud-specific finding ID, not a CVE assigned by MITRE/NVD.

Does this affect kube-state-metrics directly?

Only transitively, via client-go/apimachinery's dependency on go-restful — kube-state-metrics's own /metrics endpoint doesn't use go-restful's routing.

Do I need to do anything besides upgrade the image?

No further application changes are required — this is purely a dependency-version fix, not a configuration or RBAC change.