# A URL is all you need to break Kyverno's security

> A validation flaw lets a tenant in one namespace read resources across the entire Kubernetes cluster; Kyverno fixes it in version 1.19.2.
> By José Maldonado · Cybersecurity · 2026-11-25

A single character was enough to break Kyverno's isolation. A researcher demonstrated that a user with permission to create policies in their own namespace could make the policy engine query resources across the entire cluster using a URL with a question mark. The flaw, identified as GHSA-pcx2-xcq4-65vf and associated with CVE-2026-122312, is fixed in version 1.19.2 of the project.

The [isolation between Kyverno namespaces](https://www.akamai.com/blog/security-research/url-parser-differential-broke-kyvernos-namespace-isolation) was broken with a classic trick of recent years: two components interpret the same string differently and the attacker places their payload in the area where one looks and the other ignores. Kyverno validates the path with a function designed for file systems and the Kubernetes client interprets it as a URL, so the validation sees a permitted namespace and the request reaches a cluster resource.

The impact depends on how many people can write policies. In a cluster shared between teams, that capability is usually delegated to each space's administrators, and there the flaw turns a permissions boundary into a springboard. The researcher's telemetry puts vulnerable instances at 4% of enterprise networks, a small figure as a percentage and an enormous one in absolute numbers.

## An engine with permissions nobody watches

Kyverno is a policy engine for Kubernetes maintained by the Cloud Native Computing Foundation. Its job is to validate, mutate or generate objects when someone creates or modifies something in the cluster, and for that it needs broad permissions over the API. That position is what makes it an interesting target for a confused deputy attack: a component with high privileges executes an action that a low-privilege user could not perform on their own.

The \`apiCall\` function exists for a legitimate reason. Many policies need data that is not in the object being evaluated, so the policy author specifies a Kubernetes API path that Kyverno queries to obtain it. If that path points to a namespace other than the one the author controls, the validation should reject it.

That control worked for normal paths. The problem appeared when constructing a path that the validator considered part of its own namespace and that the HTTP client sent to a cluster endpoint.

## The difference between a path and a URL

The validation sanitized the path with a file path normalization function and then applied a regular expression that extracted the namespace. In a file system, the question mark is a normal character; in a URL, it marks the start of the query parameters. The function did not strip that part, so the expression reviewed it in full.

That is where the payload comes from. A path such as \`/api/v1/nodes?x=/namespaces/default/\` passes validation because the validator finds the permitted namespace inside the query parameter. When the Kubernetes client processes the same string, it separates the path from the parameters, queries the nodes endpoint and discards the harmless parameter.

The result is that a tenant confined to their own space can read cluster data that does not belong to them, such as the list of nodes or global configurations. The [segmentation logic applied in security agents](https://observatorioblockchain.com/en/cybersecurity/shirudo-ebpf-openai-cisco-linux/) hits the same wall: whoever processes the input before the real system defines the true perimeter.

## Who could exploit it and what did they take?

The access requirement limits the scope: one must be able to create or modify policies in a namespace one is authorized for. In clusters where the platform delegates that capability to teams, the requirement is easily met, which is why the flaw is classified as a cross-tenant boundary bypass.

Once inside, the attacker does not get a shell or directly modify workloads. They get information: node names, labels, configurations and, depending on which endpoints they reach, metadata that reveals the cluster's topology. In a multi-user environment, that reconnaissance is the first phase of a larger attack.

The [fix arrived in version 1.19.2](https://github.com/kyverno/kyverno/releases/tag/v1.19.2) and in the commit that replaces the path validation with a check that discards query parameters before applying the regular expression. The vulnerability registry entry scores the flaw at 8.3, while the analysis describing it assigns it a 10.0. The discrepancy does not change the conclusion: you have to update.

## Closing the door

Updating is the first step and the only one that eliminates the vector. After that, it is worth reviewing which existing policies use \`apiCall\` with dynamic paths and whether any point to cluster endpoints with sensitive data. A legitimate policy that reads nodes is not a flaw, but it widens the damage when validation fails.

The second step is about design. Any control that inspects URLs must use a URL parser, not file path utilities, and must apply the check to the path field already separated from the parameters. That rule applies beyond Kyverno and affects any proxy or gateway that decides permissions by looking at a string.

The third is about inventory. A policy engine with cluster permissions is critical infrastructure and deserves the same monitoring as the API server. If the team does not know which version runs on each cluster, the patch exists but does not arrive, and the 4% of vulnerable networks will still be vulnerable the next time someone tries an odd character.
