CVE-2026-34984: External Secrets Operator has DNS-based secret exfiltration via getHostByName in External Secrets v2 template engine
CVE-2026-34984 · Severity: medium · CVSS 6.5 · Published 2026-04-13
## Summary
The v2 template engine in `runtime/template/v2/template.go` imports Sprig’s `TxtFuncMap()` and removes `env` and `expandenv`, but leaves `getHostByName` available to user-controlled templates. Because ESO executes templates inside the controller process, an attacker who can create or update templated ExternalSecret resources can trigger controller-side DNS lookups using secret-derived values, creating a DNS exfiltration primitive.
### Impact
This is a confidentiality issue. In environments where untrusted or lower-trust users can author templated ExternalSecret resources and the controller can perform DNS resolution, fetched secret material can be exfiltrated through DNS without requiring direct outbound access from the attacker’s workload.
Yes. github.com/external-secrets/external-secrets (Go): upgrade to 1.3.3-0.20260331202714-6800989bdc12 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2026-34984?
Check whether you run github.com/external-secrets/external-secrets (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
github.com/external-secrets/external-secrets (Go): upgrade to 1.3.3-0.20260331202714-6800989bdc12 or later
go get github.com/external-secrets/external-secrets@v1.3.3-0.20260331202714-6800989bdc12