CVE-2026-63728
MediumCVSS 6.3Exploitation Probability (EPSS)
Low risk4th percentile - higher than 4% of all known CVEs
Summary
Gitleaks prior to 8.30.1 contains a template injection vulnerability allowing attackers to read environment variables and exfiltrate sensitive data via Sprig template functions.
Risk Assessment
Attackers can steal tokens, API keys, and secrets discovered during scanning, leading to data confidentiality breaches.
Recommendation
Update Gitleaks to version 8.30.1 or later. Do not use untrusted report templates.
Other vulnerabilities in Gitleaks
Original NVD description (English source)
Gitleaks prior to 8.30.1 contains a template injection vulnerability that allows attackers who can supply or influence report templates to read arbitrary environment variables and exfiltrate sensitive data by leveraging non-hermetic Sprig template functions. Attackers can craft malicious report templates using the env, expandenv, and getHostByName functions to extract credentials, tokens, and API keys from the host process and exfiltrate them through DNS queries, including secrets discovered during the scan itself.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

