Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-22822

External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function
Back to all
CVE

CVE-2026-22822

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

  • Cross-namespace secret access: Attackers or misconfigured resources could retrieve secrets from namespaces other than the one intended.
  • privilege escalation: Unauthorized access to secrets could lead to privilege escalation, data exfiltration, or compromise of service accounts and credentials.

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:

  • https://github.com/external-secrets/external-secrets/issues/5690
  • https://github.com/external-secrets/external-secrets/pull/3895

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.3
-
4.0
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
C
H
U
0
-
C
H
U
7.8
-
3.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Related Resources

No items found.

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

Severity

7.8

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
7.8
EPSS Probability
0.00012%
EPSS Percentile
0.01605%
Introduced Version
0.20.2,v1.0.0,v0.0.0-20251103072335-a9b233b6936f,v0.20.2,v0.0.0-20250924073612-de3036042c54
Fix Available
1.2.0,v1.2.0,v0.0.0-20251217135251-17d3e22b8d3f

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading