πŸ” CVE Alert

CVE-2026-63728

MEDIUM 6.3

Gitleaks Secret Exfiltration via Non-Hermetic Sprig Template Functions in Report Template Feature

CVSS Score
6.3
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-1336
Vendor gitleaks
Product gitleaks
Published Jul 20, 2026
Stay Ahead of the Next One

Get instant alerts for gitleaks gitleaks

Be the first to know when new medium vulnerabilities affecting gitleaks gitleaks are published β€” delivered to Slack, Telegram or Discord.

Get Free Alerts β†’ Free Β· No credit card Β· 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

Affected Versions

gitleaks / gitleaks
0 < 8.30.1

References

NVD β†— CVE.org β†— EPSS Data β†—
github.com: https://github.com/gitleaks/gitleaks github.com: https://github.com/gitleaks/gitleaks/commit/83d9cd684c87d95d656c1458ef04895a7f1cbd8e fatihhcelik.github.io: https://fatihhcelik.github.io/posts/gitleaks-abusing-sprig-for-exfiltration/#the-fix vulncheck.com: https://www.vulncheck.com/advisories/gitleaks-secret-exfiltration-via-non-hermetic-sprig-template-functions-in-report-template-feature

Credits

πŸ” Fatih Γ‡elik