CVE-2026-63728

published 20 Jul 2026 · updated 24 Sep 2026

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

6.3MediumCVSS 6.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 8.30.1.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
gitleaks<8.30.18.30.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-63728 severity on Zeptric[![CVE-2026-63728](https://zeptric.io/badge/cve/CVE-2026-63728.svg)](https://zeptric.io/cve/CVE-2026-63728)