{"cve":"CVE-2026-22822","nvd":{"published":"2026-01-21T22:15:49.380","modified":"2026-07-15T02:18:37.703","status":"Modified","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.","cvss_v4":{"vector":"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","score":9.3},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8},"cwes":["CWE-863"],"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"],"products":["external-secrets:external_secrets_operator"],"source":"nvd","synced_at":"2026-10-19T22:21:16.563232421+00:00"},"epss":{"cve":"CVE-2026-22822","score":0.00192,"percentile":0.08864,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-77v3-r3jw-j2v2","url":"https://osv.dev/vulnerability/GHSA-77v3-r3jw-j2v2","summary":"External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function","modified":"2026-04-16T02:14:29.314586906Z","packages":[{"ecosystem":"Go","name":"github.com/external-secrets/external-secrets","purl":"pkg:golang/github.com/external-secrets/external-secrets","ranges":[">=0.20.2 <1.2.0"],"fixed":["1.2.0"]}]},{"id":"GO-2026-4330","url":"https://osv.dev/vulnerability/GO-2026-4330","summary":"External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function in github.com/external-secrets/external-secrets","modified":"2026-04-16T02:14:28.931339869Z","packages":[{"ecosystem":"Go","name":"github.com/external-secrets/external-secrets","purl":"pkg:golang/github.com/external-secrets/external-secrets","ranges":[">=0.20.2 <1.2.0"],"fixed":["1.2.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}