CVE-2026-22039: Kyverno Apicall Missing Policy Namespace

Kyverno apiCall constructor invoked without a `policyNamespace` argument. Without this argument, `apiCall.Fetch` substitutes user-controlled context variables into `URLPath` and forwards the resolved path to `client.RawAbsPath` under the Kyverno admission controller ServiceAccount identity, with no enforcement that the request is scoped to the policy's own n

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-22039-kyverno-apicall-missing-policy-namespace --engine opengrep

Description

Kyverno apiCall constructor invoked without a `policyNamespace` argument. Without this argument, `apiCall.Fetch` substitutes user-controlled context variables into `URLPath` and forwards the resolved path to `client.RawAbsPath` under the Kyverno admission controller ServiceAccount identity, with no enforcement that the request is scoped to the policy's own n