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.

Technologies: github.com/external-secrets/external-secrets (Go). Vendors: Go.

Quick answers

Is CVE-2026-34984 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-34984 being exploited in the wild.
How severe is CVE-2026-34984?
Medium severity, with a CVSS score of 6.5, published 13 April 2026.
Which products and versions are affected?
github.com/external-secrets/external-secrets (Go) SEMVER:introduced=0,fixed=1.3.3-0.20260331202714-6800989bdc12.
Is there a fix for CVE-2026-34984?
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

Affected products

  • github.com/external-secrets/external-secrets (Go) SEMVER:introduced=0,fixed=1.3.3-0.20260331202714-6800989bdc12

Identifiers

  • CVE-2026-34984
  • GHSA-r2pg-r6h7-crf3
  • GO-2026-5602

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.