CVE-2026-22822: critical vulnerability in external-secrets
External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
28Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 9.3epss 0.2%
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.
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Affected products
external-secrets · external-secretsRelated CVEs — external-secrets
In the same product, most dangerous first.
CVE-2024-45041HIGHExternal Secrets Operator vulnerable to privilege escalationEPSS 0.6%CVE-2025-55196HIGHExternal Secrets Operator Missing Namespace Restriction in PushSecret and SecretStore List() Calls Allows Unauthorized Secret AccessEPSS 0.4%CVE-2025-62159HIGHExternal Secrets Operator's BeyondTrust Provider has Insecure Secret RetrievalEPSS 0.3%CVE-2026-34984HIGHExternal Secrets Operator has DNS exfiltration via getHostByName in its v2 template engineEPSS 0.3%CVE-2026-26287HIGHExternal Secrets Operator: label enforcement bypass in webhook generator enables secret exfiltrationEPSS 0.2%CVE-2026-42875MEDIUMExternal Secrets Operator: Namespace Isolation Bypass in CAProvider ConfigMap Resolution for SecretStoreEPSS 0.2%
References
https://access.redhat.com/security/cve/CVE-2026-22822https://bugzilla.redhat.com/show_bug.cgi?id=2431873https://github.com/external-secrets/external-secrets/commit/17d3e22b8d3fbe339faf8515a95ec06ec92b1febhttps://github.com/external-secrets/external-secrets/issues/5690https://github.com/external-secrets/external-secrets/pull/3895https://github.com/external-secrets/external-secrets/releases/tag/v1.2.0https://github.com/external-secrets/external-secrets/security/advisories/GHSA-77v3-r3jw-j2v2https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22822.json