Gitleaks · Gitleaks · CVE-2026-63728
**Name of the Vulnerable Software and Affected Versions**
Gitleaks versions prior to 8.30.1
**Description**
A template injection issue exists where attackers who can supply or influence report templates can read arbitrary environment variables and exfiltrate sensitive data. This is achieved by leveraging non-hermetic Sprig template functions, which are functions that can access or modify the external environment. Specifically, attackers can use the `env()`, `expandenv()`, and `getHostByName()` functions to extract credentials, tokens, and API keys from the host process and exfiltrate them via DNS queries, including secrets identified during the scan.
**Recommendations**
Update Gitleaks to version 8.30.1 or later.