{"answers":{"affected":"3 open source packages ship an affected version, including github.com/external-secrets/external-secrets. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-22822 in the wild and no public exploit code.","fix":"Upgrade github.com/external-secrets/external-secrets to 1.2.0 or later.","what":"CVE-2026-22822 is a critical missing authorization vulnerability in external-secrets, published on 21 Jan 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-22822 and fix it if it is affected.\n\nWhat it is: CVE-2026-22822 is a critical missing authorization vulnerability in external-secrets, published on 21 Jan 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-22822 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/external-secrets/external-secrets (Go): affected from 0.20.2; fixed in 1.2.0\n- github.com/external-secrets/external-secrets (Go): affected from 0.20.2; fixed in 1.2.0\n- github.com/external-secrets/external-secrets (Go): affected from 0.20.2; fixed in 1.2.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-22822/ (Markdown: https://insights.sbomify.com/CVE-2026-22822/index.md)","id":"CVE-2026-22822","markdown":"https://insights.sbomify.com/CVE-2026-22822/index.md","name":"CVE-2026-22822","record":{"aliases":["GHSA-77v3-r3jw-j2v2","GO-2026-4330","MINI-gw6m-9vh7-f9qw"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Kubernetes secrets operator","requires_auth":"low_privilege","summary":"Attackers can bypass namespace isolation to read secrets from other namespaces using the getSecretKey template function in External Secrets Operator.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"external_secrets_operator","vendor":"external-secrets"}],"cvss":{"score":9.3,"severity":"critical","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function","id":"CVE-2026-22822","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"missing_authorization","year":"2026"},"n_packages":3,"n_references":5,"next":{"headline":"Memory corruption in FortiAnalyzer Cloud","id":"CVE-2026-22828"},"packages":[{"ecosystem":"Go","fixed":["1.2.0"],"introduced":["0.20.2"],"last_affected":[],"package":"github.com/external-secrets/external-secrets","purl":null,"source":"GHSA-77v3-r3jw-j2v2"},{"ecosystem":"Go","fixed":["1.2.0"],"introduced":["0.20.2"],"last_affected":[],"package":"github.com/external-secrets/external-secrets","purl":"pkg:golang/github.com/external-secrets/external-secrets","source":"GHSA-77v3-r3jw-j2v2"},{"ecosystem":"Go","fixed":["1.2.0"],"introduced":["0.20.2"],"last_affected":[],"package":"github.com/external-secrets/external-secrets","purl":"pkg:golang/github.com/external-secrets/external-secrets","source":"GO-2026-4330"}],"prev":{"headline":"mreporting affected by a SQLI on date change","id":"CVE-2026-22821"},"products":["external-secrets"],"published":"2026-01-21","related":[{"cvss_score":9.8,"headline":"Missing authorization in n/a","id":"CVE-2024-36540","kev_date_added":null,"published":"2024-07-24"},{"cvss_score":8.3,"headline":"External Secrets Operator vulnerable to privilege escalation","id":"CVE-2024-45041","kev_date_added":null,"published":"2024-09-09"},{"cvss_score":7.1,"headline":"External Secrets Operator has DNS exfiltration via getHostByName in its v2 template engine","id":"CVE-2026-34984","kev_date_added":null,"published":"2026-04-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-15","vendors":["external-secrets"]},"summary":"Attackers can bypass namespace isolation to read secrets from other namespaces using the getSecretKey template function in External Secrets Operator.","url":"https://insights.sbomify.com/CVE-2026-22822/"}