HighGHSA-r2pg-r6h7-crf3CVE-2026-34984GO-2026-5602

External Secrets Operator has DNS-based secret exfiltration via getHostByName in External Secrets v2 template engine

Published 13 Apr 2026 · Updated 10 Sept 2026

Is your project on an affected github.com/external-secrets/external-secrets?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
<1.3.3-0.20260331202714-6800989bdc12
Fixed in
1.3.3-0.20260331202714-6800989bdc12
Update to the fixed version for your release line, for example:go get github.com/external-secrets/external-secrets@v1.3.3-0.20260331202714-6800989bdc12
Affected
>=2.0.0 <=2.2.0
Fixed in
No fix released

Details

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.

Is GHSA-r2pg-r6h7-crf3 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/external-secrets/external-secrets, and gives you the command that fixes it.

More advisories for github.com/external-secrets/external-secrets

  • LowCVE-2026-26287External Secrets Operator: label enforcement bypass in webhook generator enables secret exfiltration in github.com/external-secrets/external-secrets · 20 Oct 2026
  • HighCVE-2026-26287External Secrets Operator: label enforcement bypass in webhook generator enables secret exfiltration · 6 Oct 2026
  • LowCVE-2026-42875External Secrets Operator has Namespace Isolation Bypass in CAProvider ConfigMap Resolution for SecretStore in github.com/external-secrets/external-secrets · 25 Jun 2026
  • MediumCVE-2026-42875External Secrets Operator has Namespace Isolation Bypass in CAProvider ConfigMap Resolution for SecretStore · 5 May 2026
  • LowCVE-2026-22822External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function in github.com/external-secrets/external-secrets · 3 Feb 2026
  • CriticalCVE-2026-22822External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function · 20 Jan 2026
All 11 advisories for github.com/external-secrets/external-secrets

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.