{
  "id": "CVE-2026-22822",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-22822",
  "published_at": "2026-01-21T21:22:05.249Z",
  "title": "External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function",
  "vendor": "external-secrets",
  "product": "external-secrets",
  "cvss": {
    "score": 9.3,
    "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-863",
  "cpes": [
    "cpe:2.3:a:external-secrets:external_secrets_operator:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.3,
    "nvd": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "external-secrets",
        "product": "external-secrets",
        "ranges": [
          "\u003e= 0.20.2, \u003c 1.2.0"
        ],
        "fixed_in": [
          "1.2.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade external-secrets to 1.2.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/external-secrets/external-secrets/security/advisories/GHSA-77v3-r3jw-j2v2"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/external-secrets/external-secrets/pull/3895"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/external-secrets/external-secrets/commit/17d3e22b8d3fbe339faf8515a95ec06ec92b1feb"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/external-secrets/external-secrets/releases/tag/v1.2.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
