Vulnerability
CVE-2026-22822
External Secrets Operator reads information from a third-party service and automatically injects the values as Kubernetes Secrets. Starting in version 0.20.2 and prior to version 1.2.0, the `getSecretKey` template function, while introduced for senhasegura Devops Secrets Management (DSM) provider, has the ability to fetch secrets cross-namespaces with the roleBinding of the external-secrets controller, bypassing our security mechanisms. This function was completely removed in version 1.2.0, as everything done with that templating function can be done in a different way while respecting External Secrets Operator's safeguards As a workaround, use a policy engine such as Kubernetes, Kyverno, Kubewarden, or OPA to prevent the usage of `getSecretKey` in any ExternalSecret resource.
22 advisories report this vulnerability, across 4 ecosystems.
Advisories
- CGA-35f9-ch7p-gcm3
- CGA-374c-4c8q-p4wc
- CGA-3fvc-g44j-q94w
- CGA-624m-gfh3-v9xc
- CGA-7vmp-p85j-vgf6
- CGA-8rrj-6vx2-rfvm
- CGA-8x2x-gfr9-6h4m
- CGA-9jpv-cx86-h9cg
- CGA-cpj9-m9hw-cvww
- CGA-fxwh-w7w4-xcqm
- CGA-g46g-mcww-3vxh
- CGA-gpq5-8mch-hjh6
- CGA-j99j-952p-vj95
- CGA-jjv9-9fhp-55w2
- CGA-q26g-f5hv-mgv4
- CGA-qqfv-pg9m-c2c5
- CGA-v435-hm7j-fj6x
- CGA-wcfg-9r2w-459c
-
GHSA-77v3-r3jw-j2v2
External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function
-
GO-2026-4330
External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function in github.com/external-secrets/external-secrets
-
SUSE-SU-2026:0403-1
Security update for govulncheck-vulndb
-
openSUSE-SU-2026:21483-1
Security update for govulncheck-vulndb
References
- https://github.com/external-secrets/external-secrets/commit/17d3e22b8d3fbe339faf8515a95ec06ec92b1feb
- https://github.com/external-secrets/external-secrets/issues/5690
- https://github.com/external-secrets/external-secrets/pull/3895
- https://github.com/external-secrets/external-secrets/releases/tag/v1.2.0
- https://github.com/external-secrets/external-secrets/security/advisories/GHSA-77v3-r3jw-j2v2
- https://access.redhat.com/security/cve/CVE-2026-22822
- https://bugzilla.redhat.com/show_bug.cgi?id=2431873
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22822.json