GHSA-r2pg-r6h7-crf3

Suggest an improvement
Source
https://github.com/advisories/GHSA-r2pg-r6h7-crf3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-r2pg-r6h7-crf3/GHSA-r2pg-r6h7-crf3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-r2pg-r6h7-crf3
Aliases
Downstream
CGA (36)
MINI (2)
Published
2026-04-13T16:36:36Z
Modified
2026-09-10T03:51:02Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
  • 7.1 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
External Secrets Operator has DNS-based secret exfiltration via getHostByName in External Secrets v2 template engine
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.

Database specific
{
    "cwe_ids":  [
        "CWE-200"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-04-13T16:36:36Z",
    "nvd_published_at":  "2026-04-14T03:16:08Z",
    "severity":  "HIGH"
}
References

Affected packages

Go / github.com/external-secrets/external-secrets

Package

Name
github.com/external-secrets/external-secrets
View open source insights on deps.dev
Purl
pkg:golang/github.com/external-secrets/external-secrets

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.3.3-0.20260331202714-6800989bdc12

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-r2pg-r6h7-crf3/GHSA-r2pg-r6h7-crf3.json"

Go / github.com/external-secrets/external-secrets

Package

Name
github.com/external-secrets/external-secrets
View open source insights on deps.dev
Purl
pkg:golang/github.com/external-secrets/external-secrets

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Last Affected
2.2.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-r2pg-r6h7-crf3/GHSA-r2pg-r6h7-crf3.json"