github.com/external-secrets/external-secrets
Affected
- introduced
0.20.2, fixed1.2.0(semver)
Fixed versions
1.2.0
Fix
- Fixed version
1.2.0go get github.com/external-secrets/[email protected]
Advisory
Also known as: CVE-2026-22822, GO-2026-4330
External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function
Summary
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, as everything done with that templating function can be done in a different way while respecting our safeguards (for example, using sourceRef like explained here: https://github.com/external-secrets/external-secrets/issues/5690#issuecomment-3630977865)
Impact
Resolution
We removed the incriminated templating function from our codebase. All users should upgrade to the latest version containing this fix.
Workarounds
Use a policy engine such as Kubernetes, Kyverno, Kubewarden, or OPA to prevent the usage of getSecretKey in any ExternalSecret resource.
Details
See also:
Critical Basis: The source's own band: CRITICAL
0.20.2, fixed 1.2.0 (semver)1.2.0
1.2.0go get github.com/external-secrets/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0