VDB

GO-2026-6296

Kyverno's NamespacedGeneratingPolicy generator.apply() namespace argument unvalidated -- background controller creates RoleBindings in any namespace including kube-system in github.com/kyverno/kyverno

Quick fix

GO-2026-6296 — github.com/kyverno/kyverno: upgrade to the fixed version with the command below.

go get github.com/kyverno/kyverno@v1.18.2

Details

Kyverno's NamespacedGeneratingPolicy generator.apply() namespace argument unvalidated -- background controller creates RoleBindings in any namespace including kube-system in github.com/kyverno/kyverno

Are you affected?

Enter the version of the package you're using.

Affected packages

Go / github.com/kyverno/kyverno
Introduced in: 1.18.0 Fixed in: 1.18.2
Fix go get github.com/kyverno/kyverno@v1.18.2

References