{"id":"GHSA-77v3-r3jw-j2v2","revision":null,"records":[{"revision":"ff54ab2416194a14add627af17d8f4a2","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-22822","aliases":[],"title":"External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function","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.","state":0,"publishedAt":"2026-01-21T21:22:05.249+00:00","modifiedAt":"2026-07-15T01:19:08.563+00:00","affected":[{"ecosystem":"Vendor product","name":"external-secrets","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"external-secrets\",\n                    \"product\": \"external-secrets\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 0.20.2, < 1.2.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","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,"severity":"CRITICAL"}],"references":["https://github.com/external-secrets/external-secrets/security/advisories/GHSA-77v3-r3jw-j2v2","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/commit/17d3e22b8d3fbe339faf8515a95ec06ec92b1feb","https://github.com/external-secrets/external-secrets/releases/tag/v1.2.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-22822","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-22822","identifiers":["CVE-2026-22822"]},"retained":false,"historicalAffected":[]},{"revision":"22edbbfca2934aaf9d3c22a01f179afc","observedAt":"2026-11-23T17:35:52.947+00:00","statement":{"source":"euvd","id":"EUVD-2026-3404","aliases":["CVE-2026-22822","GHSA-77v3-r3jw-j2v2"],"title":"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 introduce…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 4.0","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,"severity":null}],"references":["https://github.com/external-secrets/external-secrets/security/advisories/GHSA-77v3-r3jw-j2v2","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/commit/17d3e22b8d3fbe339faf8515a95ec06ec92b1feb","https://github.com/external-secrets/external-secrets/releases/tag/v1.2.0"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-3404","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jan 21, 2026, 9:22:05 PM","dateUpdated":"Jul 15, 2026, 1:19:08 AM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-3404","identifiers":["EUVD-2026-3404","CVE-2026-22822","GHSA-77v3-r3jw-j2v2"]},"retained":false,"historicalAffected":[]},{"revision":"ae9bd3ea66f94cc4984cd7ef8583b40e","observedAt":"2026-10-25T05:17:36.726+00:00","statement":{"source":"nvd","id":"CVE-2026-22822","aliases":[],"title":"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 introduce…","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.","state":0,"publishedAt":"2026-01-21T22:15:49.38+00:00","modifiedAt":"2026-07-15T02:18:37.703+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · security-advisories@github.com · Secondary","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","score":9.3,"severity":"CRITICAL"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"severity":"HIGH"},{"system":"CVSS 3.1 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46c · Secondary","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"severity":"HIGH"}],"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"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-22822","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-863"],"productCriteria":["cpe:2.3:a:external-secrets:external_secrets_operator:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2026-01-21T22:15:49.380","lastModified":"2026-07-15T02:18:37.703"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-22822","identifiers":["CVE-2026-22822"]},"retained":false,"historicalAffected":[]},{"revision":"f2f085755d8a41c386eb59c3298b3b45","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-77v3-r3jw-j2v2","aliases":["CVE-2026-22822","GO-2026-4330"],"title":"External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function","description":"### Summary\n\nThe `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.\n\nThis 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)\n\n### Impact\n- Cross-namespace secret access: Attackers or misconfigured resources could retrieve secrets from namespaces other than the one intended.\n- privilege escalation: Unauthorized access to secrets could lead to privilege escalation, data exfiltration, or compromise of service accounts and credentials.\n\n### Resolution\n\nWe removed the incriminated templating function from our codebase. All users should upgrade to the latest version containing this fix.\n\n### Workarounds\n\nUse a policy engine such as Kubernetes, Kyverno, Kubewarden, or OPA to prevent the usage of `getSecretKey` in any ExternalSecret resource.\n\n### Details\n\nSee also:\n- https://github.com/external-secrets/external-secrets/issues/5690\n- https://github.com/external-secrets/external-secrets/pull/3895","state":0,"publishedAt":"2026-01-20T16:37:18+00:00","modifiedAt":"2026-04-16T02:14:29.3145869+00:00","affected":[{"ecosystem":"Go","name":"github.com/external-secrets/external-secrets","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.20.2"},{"kind":"fixed","version":"1.2.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"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":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/external-secrets/external-secrets/security/advisories/GHSA-77v3-r3jw-j2v2","https://nvd.nist.gov/vuln/detail/CVE-2026-22822","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/commit/17d3e22b8d3fbe339faf8515a95ec06ec92b1feb","https://github.com/external-secrets/external-secrets","https://github.com/external-secrets/external-secrets/releases/tag/v1.2.0"],"sourceUrl":"https://github.com/advisories/GHSA-77v3-r3jw-j2v2","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-77v3-r3jw-j2v2","identifiers":["GHSA-77v3-r3jw-j2v2","CVE-2026-22822","GO-2026-4330"]},"retained":false,"historicalAffected":[]},{"revision":"85bd516fa3fe417a819129e29ee6e2c9","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-4330","aliases":["CVE-2026-22822","GHSA-77v3-r3jw-j2v2"],"title":"External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function in github.com/external-secrets/external-secrets","description":"External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function in github.com/external-secrets/external-secrets","state":0,"publishedAt":"2026-02-03T20:37:17+00:00","modifiedAt":"2026-04-16T02:14:28.9313399+00:00","affected":[{"ecosystem":"Go","name":"github.com/external-secrets/external-secrets","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.20.2"},{"kind":"fixed","version":"1.2.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/external-secrets/external-secrets/security/advisories/GHSA-77v3-r3jw-j2v2","https://github.com/external-secrets/external-secrets/commit/17d3e22b8d3fbe339faf8515a95ec06ec92b1feb","https://github.com/external-secrets/external-secrets/pull/3895","https://github.com/external-secrets/external-secrets/issues/5690","https://github.com/external-secrets/external-secrets/releases/tag/v1.2.0"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-4330","license":"OSV · upstream source license applies","key":"osv:GO-2026-4330","identifiers":["GO-2026-4330","CVE-2026-22822","GHSA-77v3-r3jw-j2v2"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-24T19:24:56.8737941+00:00","complete":true,"records":1795,"lastAttemptAt":"2026-11-24T19:24:56.8737941+00:00","lastSuccessAt":"2026-11-24T19:24:57.2988051+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:24:57.2988062+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-f6e4a7f93ed9acd6fcb1f804a4567f7b9b16730ac126110af8d6d24176317946-1affdc145f6b69b3c45f26e7200d5494d56b596b8a589028378609bf055cbdf9","complete":true,"records":431700,"lastAttemptAt":"2026-11-24T19:24:56.246467+00:00","lastSuccessAt":"2026-11-24T19:24:56.0174093+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:24:56.246467+00:00","snapshotPublishedAt":"2026-11-24T19:22:54+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-688c786e0e154f0aa5ebda26bfba5e3a","complete":false,"records":13935,"lastAttemptAt":"2026-11-24T19:25:03.409988+00:00","lastSuccessAt":"2026-11-24T19:05:48.266+00:00","error":"94 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-24T19:05:48.266+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13877,"expectedIdentifiers":13982,"failedIdentifiers":94},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-24T19:24:56.8737941+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-24T19:24:56.8737941+00:00","lastSuccessAt":"2026-11-24T19:24:57.3217986+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:24:57.3218003+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-a4d3d64b93df4d1da3938d27196fcba8","complete":true,"records":13947,"lastAttemptAt":"2026-11-24T19:25:01.6355516+00:00","lastSuccessAt":"2026-11-24T19:04:25.935+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:04:25.935+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13982,"expectedIdentifiers":13982,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-4929b8b852ac0d08034af08eb3f8801ac97c81d230bedb3a3a0710d6b4e692b2","complete":true,"records":10074,"lastAttemptAt":"2026-11-24T19:24:56.6850757+00:00","lastSuccessAt":"2026-11-24T18:03:57.9682362+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:24:56.6850757+00:00","snapshotPublishedAt":"2026-11-24T17:33:45+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-24T19:24:56.4707087+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:24:56.4707087+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-3afd4dd07a6bf352a6a53c4438150c464a2527017b95ca94804134ea15f1eba9","complete":true,"records":3220,"lastAttemptAt":"2026-11-24T19:24:56.7893892+00:00","lastSuccessAt":"2026-11-24T10:25:37.8779609+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:24:56.7893892+00:00","snapshotPublishedAt":"2026-11-24T09:33:40+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-44152768b3aabd79974e12387f59fcbffd2373284eb946ae9e13df00d985abde","complete":true,"records":233039,"lastAttemptAt":"2026-11-24T19:24:56.5789855+00:00","lastSuccessAt":"2026-11-24T19:03:58.5695229+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:24:56.5789855+00:00","snapshotPublishedAt":"2026-11-24T18:33:49+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}