Vulnerability · Published Jan 21, 2026 · Assigned by GitHub_M
CVE-2026-22822External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function
High 8.8
In plain English
A high-severity incorrect authorization in external-secrets from external-secrets. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 9% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/external-secrets/external-secrets | 1.2.0 | GHSA-77v3-r3jw-j2v2 |
| Go | github.com/external-secrets/external-secrets | 1.2.0 | GO-2026-4330 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| external-secrets | external-secrets | >= 0.20.2, < 1.2.0 |
Weakness: CWE-863 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/external-secrets/external-secrets/security/advisories/GHSA-77v3-r3jw-j2v2 x_refsource_CONFIRM
- https://github.com/external-secrets/external-secrets/issues/5690 x_refsource_MISC
- https://github.com/external-secrets/external-secrets/pull/3895 x_refsource_MISC
- https://github.com/external-secrets/external-secrets/commit/17d3e22b8d3fbe339faf8515a95ec06ec92b1feb x_refsource_MISC
- https://github.com/external-secrets/external-secrets/releases/tag/v1.2.0 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-22822 vdb-entry, x_refsource_REDHAT
- RHBZ#2431873 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22822.json x_sadp-csaf-vex